React enforces using pure components. To ensure this React has ‘StrictMode’ on in the development mode/environment. So that any impure component can be identified.
React Doc says, “React’s rendering process must always be pure. Components should only...