Managing Derived State from Props in React

added by JavaScript Kicks
12/13/2018 8:38:54 AM

612 Views

Patterns and Anti-patterns for managing states based on Props From the React docs, the general consensus when it comes to Props vs State is as follows: Props: (short for properties) are a Component's configuration. They are received from above and immutable. State: starts with a default value when a Component mounts and then suffers from mutations in time.


0 comments