React
react
React is a JavaScript library for building user interfaces.
Utilities
react
Utilities
javascript
npm
frontend
open source
ui
library
web
typescript
Stars
250k
Weekly
153M
Open issues
1352
Bundle
~15 kB
Installation
npm install reactCode example
import { useReact } from "react";
export function Example() {
const value = useReact();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by fb
- 153M 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