Understanding and enabling strict mode
React strict mode helps us write better React components by carrying out certain checks. This includes checks on class component life cycle methods.
React components can either be implemented using a class or a function. Class components have special methods called life cycle methods that can execute logic at certain times in the component's life cycle.
Strict mode checks that the life cycle methods will function correctly in React concurrent mode.
Important Note
React concurrent mode is a set of features that help React apps stay responsive, even when network speeds are slow. More information on concurrent mode can be found at https://reactjs.org/docs/concurrent-mode-intro.html.
Strict mode checks life cycle methods in third-party libraries, as well as the life cycle methods we have written. So, even if we build our app using function components, we may still get warnings about problematic life cycle methods.
Strict mode...