next-share icon indicating copy to clipboard operation
next-share copied to clipboard

Support server component

Open Bunlong opened this issue 2 years ago • 3 comments

Feature

Enable to use/import in server component.

Bunlong avatar Aug 08 '23 02:08 Bunlong

A much-needed change

Pavlusha311245 avatar Jan 11 '24 21:01 Pavlusha311245

Please make usable on Nextjs 14 ssr pages

yanok87 avatar Jan 19 '24 17:01 yanok87

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>
    );
}

parkerproject avatar Feb 09 '24 20:02 parkerproject