React Immutable Proptypes
react-immutable-proptypes
PropType validators that work with Immutable.js.
Tables
react
immutable-js
immutable
immutablejs
proptype
react-immutable-proptypes
Tables
javascript
npm
frontend
Stars
636
Weekly
862k
Open issues
19
Bundle
~25 kB
Installation
npm install react-immutable-proptypesCode example
import { useImmutableProptypes } from "react-immutable-proptypes";
const rows = [
{ id: 1, name: "Ada", role: "Engineer" },
{ id: 2, name: "Linus", role: "Maintainer" },
];
export function Example() {
const table = useImmutableProptypes({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
return <pre>{JSON.stringify(table, null, 2)}</pre>;
}Pros & cons
Pros
- Actively maintained by James Burnett
- 862k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 19 open issues on GitHub