@concordance/react

2.0.0 • Public • Published

@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.

Package Sidebar

Install

npm i @concordance/react

Weekly Downloads

77,780

Version

2.0.0

License

ISC

Unpacked Size

29.9 kB

Total Files

8

Last publish

Collaborators

  • novemberborn