React has evolved over the years and some concepts were replaced by better ones. 1. Using classes Every time we wanted to use state or take advantage of lifecycle methods we had to compose a Javascript class to create a React component. Even if we did not have a need to use these features we were choosing a class in advance, because you never know when your component will demand a state or side effects. Fortunately, early 2019 React 16.8 was released with the feature of hooks. React hooks provides us an ability to replace a state with useState hook which is much handier than the previous state concept…....
3 React Concepts Which Can Be Forgotten
2 min read