Home

Awesome

jsondiffpatch-for-react

Based on https://github.com/benjamine/jsondiffpatch

1. install

npm install jsondiffpatch-for-react

2. usage

import React from 'react';
import JsonDiffReact from 'jsondiffpatch-for-react';

<JsonDiffReact
    right: PropTypes.any,
    left: PropTypes.any,
    show: PropTypes.bool,
    annotated: PropTypes.bool,
    tips: PropTypes.string,
    objectHash: PropTypes.func,
/>

3. component props