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
Answer from Jamil Mammri on Stack OverflowReact 18?
reactjs - React library to display unified diff between two strings - Stack Overflow
React-Diff-View
Is there a library that allows to easily do diffchecks between two json?
» npm install react-diff-view
» npm install react-diff-viewer-continued
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 @alexbruf/react-diff-viewer
» npm install react-diff-viewer
Hey reddit! My first post on this subreddit here. I'm trying to generate a github style diff between 2 strings containing code on react. I found a package on github otakustay/react-diff-view but i'm confused as to how to use this package. react-diff-view
The example given in the readme uses a parameter 'diffText' but then doesn't provide any info as to what that variable is.
Would love the help!