You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have watched the 2 series of your React toturials, and I have noticed that you like to use state directly in the class, instead of to put it in the constructor like the React documentation does.
Hi, Ninja,
I have watched the 2 series of your React toturials, and I have noticed that you like to use
state
directly in the class, instead of to put it in theconstructor
like the React documentation does.So, would you please explain it a little bit about why you prefer to use
state
like the above class Foo ? Thanks.The text was updated successfully, but these errors were encountered: