Before React 16.8, function components did not have state or lifecycle hooks. With 16.8+, function components can now use hooks to use… — Before React 16.8, function components did not have state or lifecycle hooks. With 16.8+, function components can now use hooks to use state and you can implement side-effects on first render and after every update. To take a closer look at this, lets see how a function and class component…