11 lines
423 B
TypeScript
11 lines
423 B
TypeScript
import dynamic from 'next/dynamic'
|
|
import React from 'react'
|
|
|
|
const NoSsr = (props: { children: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | React.PromiseLikeOfReactNode | null | undefined }) => (
|
|
<React.Fragment>{props.children}</React.Fragment>
|
|
)
|
|
|
|
export default dynamic(() => Promise.resolve(NoSsr), {
|
|
ssr: false
|
|
})
|