React json syntax highlighter
This is a simple React component that serializes a JavaScript object as highlighted json string.
Getting Started
Install react component:
npm install --save react-json-syntax-highlighter
Import the component in your file:
Use it in your React component:
Component { const obj = stringProp: 'bar' numberProp: 1 booleanProp: true nullProp: null nestedProp: nestedPropBar: 'bar' return <ReactJsonSyntaxHighlighter obj=obj /> }