Open Bunlong opened 1 year ago
A much-needed change
Please make usable on Nextjs 14 ssr pages
This is how I am currently using it
import dynamic from 'next/dynamic';
const NextShareComponent = dynamic(() => import('../components/NextShareComponent'), { ssr: false });
function MyPage() {
return (
<div>
<ClientOnlyComponent />
</div>
);
}
Feature
Enable to use/import in server component.