- Higher Order Components and
- Children to solve prop-drilling
- Portals - modal story
- React Suspense and lazy: https://hackernoon.com/magic-of-react-suspense-with-concurrent-react-and-react-lazy-api-e32dc5f30ed1
Redux:
- Saga's versus thunks... or both?
- Global versus local state... are you over-using redux?
Other learning:
- Remember that setState() can also take a function as a parameter:
- setState() is asynchronous, if you call it in the component you cannot guarantee that local state has been updated immediately
this.setState((prevState, props)
=> ({ ...prevState, answer}));
No comments:
Post a Comment