0.8.4 • Published 1 year ago
@otakustay/react-json-view v0.8.4
react-json-view
A customizable json view component for react, included features:
- Visualize any JSON object to a tree style.
- Expand or collapse object or array properties.
- Custom rendering of any value.
- Built-in render functions like copy property value.
- CSS theme support.
We don't plan to support editing feature recently.
Install
npm install @otakustay/react-json-view
Usage
Basic
To render an obejct containing JSON values, simply pass source
prop to JsonView
component.
import {JsonView} from '@otakustay/react-json-view';
import '@otakustay/react-json-view/style';
function App() {
return (
<JsonView source={mySourceObject} />
);
}