Created
August 20, 2019 02:52
-
-
Save longlho/0a222c1c68991606ceb84997b08ee6b0 to your computer and use it in GitHub Desktop.
transformer-p9.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo () { | |
return <img src="image.jpeg" /> | |
} | |
// Into | |
const hoisted_element_1 = <img src="image.jpeg" /> | |
function foo () { | |
return hoisted_element_1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment