loadable-components
loadable-components copied to clipboard
#718 server-side-rendering with react 18
Summary
th
The issue https://github.com/gregberge/loadable-components/issues/718 mentions, that this library is not usable with react 18. However, this is an update of server-side-rendering
example within react 18. And it works fine without errors or warnings. From what I can see you should just use react >=16.3.0
: https://github.com/gregberge/loadable-components/blob/main/packages/component/package.json#L37
Test plan
cd packages/component
yarn
yarn dev
open http://localhost:9000
. Observe that server-side rendered code is properly hydrated without any warnings:
The problem with React 18 is more about Suspense. The provided example is not using any "React" orchestration and hence has no issues.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.