ideaInvalid number of arguments, expected 2

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.

0

Works fine for me

Do you have React typings installed? Please try Ctrl+clicking on setState() - what definition are you taken to?

1

请先登录再写评论。