Skip to content

Compare, format, diff and serialize React trees with Concordance

License

Notifications You must be signed in to change notification settings

concordancejs/react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compare, format, diff and serialize React trees with Concordance

Resources

License

Stars

Watchers

Forks

Packages

No packages published