ideaInvalid number of arguments, expected 2 Permanently deleted user 创建于 2019年02月11日 03:35 When I learned to react as an example, I came across this problem So I've been wondering why my setState would have had this mistake.
Works fine for me
Do you have React typings installed? Please try Ctrl+clicking on setState() - what definition are you taken to?