This project was bootstrapped with Create React App.
React 16 comes with some new and powerful features, in this repository we will explore each one of them. Each lesson will review each new individual feature, one at a time. Not only will we see the technical capabilities of the new functions, but we will also address the best practices.
Once you see this repository clones and review the examples you will be more than ready to take advantage of everything React 16 has to offer.
- Error Handling using Error Boundaries in React 16
- Render Multiple Elements without a Wrapping Element in a Component in React 16
- Render Text Only Components in React 16
- Render Elements Outside the Current React Tree using Portals in React 16
- Define DOM Attributes in React 16
- Call setState with null to Avoid Triggering an Update in React 16
- Render Multiple Elements using React.Fragment and the JSX Fragment Syntax <> in React 16.2
- Create a DOM reference using createRef in React 16.3
- Forward a DOM reference to another Component using forwardRef in React 16.3
- Update State Based on Props using the Lifecycle Hook getDerivedStateFromProps in React 16.3
- Capture values using the lifecycle hook getSnapshotBeforeUpdate in React 16.3
- Pass Data through a Component Tree using Context Providers and Consumers in React 16.3