Easily fetch json data in your React components, with similar APIs to react-apollo, and Suspense SSR :tada:
As of this version, react-isomorphic-data
does SSR with Suspense (with react-ssr-prepass
) to avoid calling renderToStringMarkup
repeatedly. This should yield better SSR performance.
renderToStringWithData
and getDataFromTree
now no longer needs DataClient
as second paramPreviously:
renderToStringWithData(tree, dataClient);
getDataFromTree(tree, dataClient);
Now:
renderToStringWithData(tree);
getDataFromTree(tree);