react-jsoneditor-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

react-jsoneditor-wrapper

A ReactTypescript wrapper for jsoneditor by josdejong

How to install:

npm install react-jsoneditor-wrapper

How to include

import ReactJSONEditor from "react-jsoneditor-wrapper";

To use

Create elements the React way

Create an element with properties:

    <ReactJSONEditor json={properties} name="properties" mode="form" ref={ref => (this.jsoneditorref = ref)} />  

If you prefer you can use text instead of a json object. Text will be parsed in to a JSOn object:

  <ReactJSONEditor ref={ref => (this.jsonEditorRef = ref)}  text={this.state.content} name="properties" mode="code" modes={["code"]}/>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.0230latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.0230
1.0.3250
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i react-jsoneditor-wrapper

Weekly Downloads

392

Version

1.1.0

License

MIT

Unpacked Size

14.5 kB

Total Files

14

Last publish

Collaborators

  • felipecarrillo100