react-diff-code
v1.0.0
Published
A react component of diff code
Downloads
3
Readme
react-diff-code
A react component diff code
Install
npm install react-diff-code
Usage
import {Component} from 'react';
import ReactDiffCode from 'react-diff-code';
class Demo extends Component{
constructor(props) {
super(props);
}
render(){
return (
<div>
<ReactDiffCode oldStr={oldStr} newStr={newStr} leftTitle="当前数据" rightTitle="旧数据"/>
</div>
)
}
}
export default Demo;
Test Demo
git cloen xxx
npm i
npm run dev