react-diff2
Highlights the differences between two piece of data. Uses the diff module. Is a fork of react-diff project.
Installation
npm i react-diff2
Demo
http://cezary.github.io/react-diff/
Example
;; const Component = { ... return <Diff inputA="gogol" inputB="google" type="chars" /> ;}
or with json
:
;; const Component = { ... return <Diff inputA=propsoldObject inputB=propsnewObject type="json" /> ;}
Original project
License
MIT