what happens when we dynamically import a component remounts whole dom code example
Example: dynamic import in reactjs
const OtherComponent = React.lazy(() => import('./OtherComponent'));
const OtherComponent = React.lazy(() => import('./OtherComponent'));