I am wondering if there's something that allows you to easily display differences between two json like on diffchecker.com. Is there a library that allows you to easily do that?
» npm install react-json-view-compare
» npm install json-diff-kit
» npm install json-diff-react
Try either "react-diff-view" or "react-diff-viewer".
The "react-diff-viewer" is quite simple to use/implement while the "react-diff-view" offers some more advanced features.
It's up to you, here the links: https://www.npmjs.com/package/react-diff-viewer https://www.npmjs.com/package/react-diff-view
react-diff-viewer-continued might be what you are looking for since 'react-diff-view' is no longer having updates and is not compactable for react 18^.
» npm install jsondiffpatch-react
I'm looking for a react component that compares json documents passed in as strings. The input would be the two json strings and the component would render the diff like a GitHub pr files changed UI. I was using ReactDiffViewer but it is not compatible with react 18.