/react-diff-simple-component

Given two inputs, highlights the differences (Fork of cezary/react-diff)

Primary LanguageJavaScript

react-diff

NOTE: I stole this lib from cezary/react-diff

Highlights differences between two strings, uses the diff module

Installation

npm install react-diff

Demo

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

Example

import React from "react";
import Diff from "react-diff";

const MyComponent = () => {
  return <Diff inputA="gogol" inputB="google" type="chars" />;
};

License

MIT