Skip to content

mixj93/jsoneditor-for-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsoneditor-for-react

React wrapper for jsoneditor

Also you can check the angular version: angular-jsoneditor

Installation

npm install jsoneditor-for-react --save

Usage

import React, { Component } from 'react';
import ReactJsonEditor from 'jsoneditor-for-react';

class App extends Component {
  ...

  editorChangeHandler = (values) => {
    console.log('new values', values)
    this.setState({values: values})
  }

  render() {
    return (
      <div className="App">
        <ReactJsonEditor values={this.state.values} onChange={(values) => {this.editorChangeHandler(values)}}/>
      </div>
    );
  }
}

export default App;

TODO

  • support jsoneditor options
  • support ace and ajv
  • examples and demos

About

React wrapper for josdejong/jsoneditor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published