mac-s-g / react-json-view

JSON viewer for react

Home Page:https://mac-s-g.github.io/react-json-view/demo/dist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no document error on page refresh

usama-hassan-khan opened this issue · comments

i am facing an issue when I reload the page,getting no document error,kindly help
image

@usama-hassan-khan
Please check the issue #296.

commented

Quoting the response:
For users using nextjs, you can use next/dynamic for this case

const DynamicReactJson = dynamic(import('react-json-view'), { ssr: false });
<DynamicReactJson src={yourData}

I think we can close this.