Egghead.io – Reusable State And Effects With React Hooks-APoLLo
English | Size: 367.98 MB
Category: Tutorial
Previously, in order to add state or side-effects in React you had to create a Class Component. However, with the introduction of the Hooks proposal (currently pre-released), you can now add state and effects to a Function Component. In addition, you can extract your hook logic and create a custom hook that can be shared across your app.