react-diff-component

React diff string component

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-diff-component
0.1.54 years ago4 years agoMinified + gzip package size for react-diff-component in KB

Readme

react-diff-component
Highlights differences between two strings, uses the diff module based on (https://github.com/cezary/react-diff)

Installation

npm install react-diff-component --save

Demo

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

Example

import Diff from 'react-diff-component';

const Component = () => (
    <Diff inputA="test" inputB="test2" type={Diff.types.chars} />
);

License

MIT