react-plain-json-editor
It provides simple JSON editor for React.
live demo
you can use this either as a Component(PlainJsonEditor) or as a Hook(useJsonEditor).
Install
npm i react-plain-json-editor
or
yarn add react-plain-json-editor
How to use
PlainJsonEditor
note: all properties are optional.
PlainJsonEditor is enough but if you want to use it more (more!) simple way, there is a hook style useJsonEditor
for you.
useJsonEditor
This is useful especially the cases that...
- you want to have full accessibility of
textarea
- you want to handle inner(parsing) error by yourself
note: all properties are optional.