StrictMode double-renders only in development, and dev builds are slower; measure a production build before optimisingStrictMode double-renders only in development, and dev builds are slower, so measure a production build before optimising. StrictMode calls component functions twice in development to expose impure rendering. Development builds also include extra checks that make them slower. Neither happens in a production build.
"There is a bug causing duplicate renders" is the tempting wrong answer. The double logs are expected in development. Removing StrictMode would hide bugs without making production faster. React 19 does not always render twice either.
Read more