New in React 16.8
The following lists the new things that were introduced in React 16.8:
- The major changes made to the reconciliation internals, and what they mean for React projects, going forward
- It allows confining errors to be confined to the sections of your application by setting error boundaries
- It provides creating components that render more than one element, and components that render strings
- It allows rendering to portals
New features with React 16.8
React 16.8 introduces users to the concept of hooks. Hooks allow the consumption of state and other React features without writing a class. Not only that, but it allows developers to build their own hooks and share reusable logic between components.
Note
Please note that these hooks are only available in React 16.8. Our project is built with 16.6.0. So, if you want to use hooks, consider upgrading to 16.8. By now, you know how to create a new project. You can read more about using the hooks at https://reactjs.org/blog/2019/02/06/react-v16...