wallet-core/node_modules/@concordance/react
2017-08-14 05:02:09 +02:00
..
lib node_modules 2017-08-14 05:02:09 +02:00
index.js node_modules 2017-08-14 05:02:09 +02:00
LICENSE node_modules 2017-08-14 05:02:09 +02:00
package.json node_modules 2017-08-14 05:02:09 +02:00
README.md node_modules 2017-08-14 05:02:09 +02:00

@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, taking into account whether serialization and / or comparison is done using Node.js 4, which has less reliable support for function names.

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