Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-json-enspector

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-enspector

An editable JSON inspector for React.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

React JSON Enspector

The React JSON Enspector allows you to edit a JSON inspector, similar to the Chrome dev tools. It's a work in progress, and will regularly see breaking API changes!

Installation

$ npm install react-json-enspector

Usage

import JSONEnspector from 'react-json-enspector';

<JSONEnspector
    data={{
        foo: 'bar',
        fizzzzzzz: 'buzz',
        boo: {
            foooooo: 1,
            blah: {
                monkey: 'balls'
            },
            tryit: [ 'array', 'of', 'things', 1 ]
        }
    }}
    onChange={(data) => console.log('new data: ', data)}
/>

Examples

There's a React Storybook available - just clone this repo and run yarn storybook. You can inspect the source in the stories folder for further examples. Better documentation is coming.

Thanks

The React JSON Enspector is inspired by, and borrows heavily from (especially styling!) @Lapple's [React JSON Inspector] (https://github.com/Lapple/react-json-inspector). The project is an excellent read-only JSON inspector. If that's all you need, I highly recommend you check it out.

FAQs

Package last updated on 03 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc