Separation of Concerns - Container Components and Presentational Components#
Component Renders Twice#
In general, it is the normal expected behavior when wrapping components with <React.StrictMode>
, because strict mode will call some functions twice in the development environment (only for functions that should be pure functions), which helps us to discover and fix errors early.
See: – React