React Inspector
react-inspector
Power of Browser DevTools inspectors right inside your React app
Tables
devtools
inspector
object
object-inspector
react
react-component
reactjs
table
table-inspector
table-view
Stars
851
Weekly
1.5M
Open issues
32
Bundle
~25 kB
Installation
npm install react-inspectorCode example
import { useInspector } from "react-inspector";
const rows = [
{ id: 1, name: "Ada", role: "Engineer" },
{ id: 2, name: "Linus", role: "Maintainer" },
];
export function Example() {
const table = useInspector({ data: rows, columns: [{ accessorKey: "name" }, { accessorKey: "role" }] });
return <pre>{JSON.stringify(table, null, 2)}</pre>;
}Pros & cons
Pros
- Actively maintained by Xiaoyi Chen
- 1.5M weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 32 open issues on GitHub