RE

React Json View Lite

react-json-view-lite

JSON viewer component for React focused on performance for large volume input while still providing few customiziation features

Component Libraries
react
json
component
view
json-view
json-tree
lite
react-json-view-lite
Component Libraries
javascript
Stars
245
Weekly
1.3M
Open issues
8
Bundle
~25 kB

Installation

npm install react-json-view-lite

Code example

import { Button } from "react-json-view-lite";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by AnyRoad
  • 1.3M 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
  • 8 open issues on GitHub

FAQs

Alternatives & similar libraries