Upgrade nextjs version and fix example (#649)
This commit is contained in:
8
apps/nextjs-app/app/NoSSRWrapper.tsx
Normal file
8
apps/nextjs-app/app/NoSSRWrapper.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import dynamic from 'next/dynamic'
|
||||
import React from 'react'
|
||||
const NoSSRWrapper = props => (
|
||||
<React.Fragment>{props.children}</React.Fragment>
|
||||
)
|
||||
export default dynamic(() => Promise.resolve(NoSSRWrapper), {
|
||||
ssr: false
|
||||
})
|
||||
Reference in New Issue
Block a user