React Is
react-is
Brand checking of React Elements.
Utilities
react
react-is
Utilities
javascript
npm
frontend
open source
ui
library
web
Stars
252k
Weekly
217M
Open issues
1469
Bundle
~15 kB
Installation
npm install react-isCode example
import { useIs } from "react-is";
export function Example() {
const value = useIs();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by fb
- 217M 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