RE

React Json Tree

react-json-tree

React JSON Viewer Component, Extracted from redux-devtools

Utilities
react
json viewer
react-json-tree
Utilities
javascript
npm
frontend
open source
ui
library
Stars
14k
Weekly
886k
Open issues
232
Bundle
~25 kB

Installation

npm install react-json-tree

Code example

import { useJsonTree } from "react-json-tree";

export function Example() {
  const value = useJsonTree();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by Shu Uesugi
  • 886k 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
  • 232 open issues on GitHub

FAQs

Alternatives & similar libraries