I'm importing a map component dynamically with Next.js and I need to pass some data to it via props.
const MapWithNoSSR = dynamic(() => import("../Map"), {
ssr: false,
loading: () => <p>...</p>,
});
Is there any way to do that?
You would do like any other component:
<MapWithNoSRR yourProp={data}></MapWithNoSRR>