react-json-view is a React component for displaying and comparing JavaScript arrays and JSON objects.
This component provides a responsive interface for displaying arrays or JSON in a web browser. NPM provides a distribution of the source that is transpiled to ES5, so you can include this component in any web-based JavaScript application.
import JsonView from '@oconr/react-json-view'
<JsonView data={jsonData} newData={comparisonData} />
Install this component with NPM.
npm install --save @oconr/react-json-view
Or add to your package.json
"dependencies": {
"@oconr/react-json-view": "latest"
}