@concordance/react

Compare, format, diff and serialize React trees with Concordance

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
82Mar 22, 2020May 18, 2017Minified + gzip package size for @concordance/react in KB

Readme

@concordance/react

React plugin for Concordance.

Allows React.createElement() objects to be compared, formatted, diffed and serialized. Also supports toJSON() renderings of react-test-renderer. These may be compared to React.createElement() objects.

When comparing React component elements, the element type is compared by identity. After deserialization the element types are compared by function name.

Component elements are formatted with a ⍟ character after the element name. Properties and children are formatted by Concordance.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.