react-pretty-json
Get started
- Install
react-pretty-json
in your project:
$ npm install react-pretty-json
- Import package and pass JSON.
; // ... render
- (Optional) Importing styles. You can reach it with `react-pretty-json/assets/json-view.css'.
;
Component props
Prop | Type | Default | Description |
---|---|---|---|
json* |
object | none | Generate object. |
spaces | number | 4 | Parts that will be generated js files. |
*
- Required.