TIL #4: Why React Component re-renders in Strict mode

Today, while doing my day-to-day tasks, I come to observe that my API call in useEffect runs twice, I knew that it was re-rendering because of the local state changes inside the component, but it was not the case, in the first place the useEffect was intended to run on page load or mount only, but then why it's rerendering again.

So on some searching on the new React documentation page, I searched for StrictMode and it gives all clarity that I need that it intentionally rerenders to identify any bug related to the immutability of props or check impure functions.