React Server Dom Webpack
react-server-dom-webpack
React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.
Utilities
react
react-server-dom-webpack
Utilities
javascript
npm
frontend
open source
ui
library
web
Stars
250k
Weekly
1.8M
Open issues
1352
Bundle
~25 kB
Installation
npm install react-server-dom-webpackCode example
import { useServerDomWebpack } from "react-server-dom-webpack";
export function Example() {
const value = useServerDomWebpack();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by react-bot
- 1.8M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 1352 open issues on GitHub