Closed lhz516 closed 3 years ago
don't render it till you are on client side
{
typeof window !== "undefiend" && <WordCloud data={data} />;
}
{
typeof window !== "undefined" && <WordCloud data-cy="wordcloud" data={wordCloud} />
}
(typos)
When doing server side rendering (SSR), server will throw an error because
document
is not defined on the server. It would be great if SSR support can be added to this package.