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
As I read it, synthetic state is a way to cache a transformation of the props since the state is expected to change more frequently than the props (i.e. most re-renders will be due to state changes, not prop changes). Just curious if there was a reason the data was stored in the component state instead of an instance variable.
The text was updated successfully, but these errors were encountered:
As I read it, synthetic state is a way to cache a transformation of the props since the state is expected to change more frequently than the props (i.e. most re-renders will be due to state changes, not prop changes). Just curious if there was a reason the data was stored in the component state instead of an instance variable.
The text was updated successfully, but these errors were encountered: