According NextJs documentation we can use dynamic import for javascripts filesconst DynamicComponent = dynamic(() => import('../components/hello')).
Will be correct to use dynamic import also for .tsx file like this:
const MyComponent = dynamic(() => import('main/my-file.tsx'), {
ssr: false,
});
? Or we can import dynamically only .js files?