ReactJS lifecycle method inside a function Component
Edit: With the introduction of Hooks it is possible to implement a lifecycle kind of behavior as well as the state in the functional Components. Currently Hooks are a new feature proposal that lets you use state and other React features without writing a class. They are released in React as a part of v16.8.0 … Read more