React Dom
react-dom
React package for working with the DOM.
Utilities
react
react-dom
Utilities
javascript
npm
frontend
open source
ui
library
web
Stars
250k
Weekly
144M
Open issues
1352
Bundle
~15 kB
Installation
npm install react-domCode example
import { useDom } from "react-dom";
export function Example() {
const value = useDom();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by fb
- 144M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 1352 open issues on GitHub