Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 315 Bytes

react.md

File metadata and controls

5 lines (4 loc) · 315 Bytes

How to identify what pieces of data are states? Identify the ones that are not:

Does it remain unchanged over time? If so, it isn’t state. Is it passed in from a parent via props? If so, it isn’t state. Can you compute it based on existing state or props in your component? If so, it definitely isn’t state!