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
The doc provides two examples of how to initialize state with props.
My question is are the two interchangable (i.e. does it matter which one I choose)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The doc provides two examples of how to initialize state with props.
My question is are the two interchangable (i.e. does it matter which one I choose)?
First:
Second:
Beta Was this translation helpful? Give feedback.
All reactions