React Hooks: useTheForce
Getting Started with React and Hooks
React is one of the top front-end libraries for building fast interactive web applications.
Historically if you wanted to add state to your React Component you needed to use a JavaScript class. If your component had no state, then you could have used a function component, but once it needed state you'd have to convert it to a class component.
Thankfully, there is a new feature called hooks that enable you to maintain state and side-effects to a function component.
In this talk, we will compare class components with Function components with hooks, we will show the benefits of using hooks, walk through some of the more common hooks, show how to make your own hooks, and more.
Some of the patterns to reuse logic with class based components aren't needed anymore, so we will talk about how that is done in a hooks world.