dillon1000/react

Commit

rename this tip to be less confusing

Using props to initialize state is completely fine; the issue is using state as a "cache" for values calculated based off of props. This title makes it more clear.
Browse files
Changed paths1 file
First-parent comparison
M docs/tips/10-props-in-getInitialState-as-anti-pattern.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…