Back to notes400 views
Derived State
react
Don't store what you can compute. If a value can be derived from props or existing state during render, do that instead of syncing it in an effect.
Don't store what you can compute. If a value can be derived from props or existing state during render, do that instead of syncing it in an effect.