- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.4k
 
Closed
Labels
enhancementnew functionalitynew functionality
Description
See #1154 (comment). During the development of magic-assert PR, we decided to extract t.jsxEqual from it and land it bit later with a more clear purpose.
I do have one idea for these, but not sure if that can be implemented to be stable enough. We (or community) could write a babel plugin for react/preact/inferno, which detects
t.jsxEqualand convert:t.jsxEqual(<This/>, <That/>);into:
t.jsxEqual(renderer.create(<This/>).toJSON(), renderer.create(<That/>).toJSON());to save the user from typing that manually or creating shortcuts (as mentioned in #1175).
Also related #1175
hoschi
Metadata
Metadata
Assignees
Labels
enhancementnew functionalitynew functionality