#react Hooks are live. Here is your introduction
▻https://hackernoon.com/react-hooks-are-live-here-is-your-introduction-cd971a576561?source=rss--
Classes can be a large barrier to learn React, says React team. They don’t minify very well and they make hot reloading unreliable. With React Hooks, you don’t need to convert a function component into class component. You can use state and lifecycle methods in the function component.Okay, but what are hooks really?They are functions that let you “hook” into React internal state and lifecycle features from function componentsGreat! How do I do that?First, Update your React and React DOM dependency in your project. Hooks are freshly released on React 16.8.0 today!npm install —save react@^16.8.0 react-dom@^16.8.0Now let’s take a look on the useState hook. Here is the demo:▻https://medium.com/media/1ccc30b1722d2d5bd8477a0969ede55f/hrefuseState hookWe need to have a simple class component with (...)