🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

The react-diff component allows you to compare and highlights the difference between two strings typed in the input fields.

React Text

Documentation

react-diff

Highlights differences between two strings, uses the diff module

Installation

npm install react-diff 

Demo

http://cezary.github.io/react-diff/

Example

var React = require('react'); var Diff = require('react-diff');  var Component = React.createClass({   render: function() {     return (       <Diff inputA="gogol" inputB="google" type="chars" />     );   } });

License

MIT


You May Also Like