Bunlong / next-share

Social media share buttons and share counts for your next React apps.
https://next-share.js.org
MIT License
242 stars 34 forks source link

Support server component #102

Open Bunlong opened 1 year ago

Bunlong commented 1 year ago

Feature

Enable to use/import in server component.

Pavlusha311245 commented 8 months ago

A much-needed change

yanok87 commented 8 months ago

Please make usable on Nextjs 14 ssr pages

parkerproject commented 7 months ago

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