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
252k
Weekly
109M
Open issues
1469
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
- 109M 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
- 1469 open issues on GitHub