Wk-notes-01-13-emotion-x
Upgrade to emotion X
Use @emotion/babel-preset-css-prop
to make below happen
Input
Output
Before
<img src="avatar.png" />
React.createElement('img', { src: 'avatar.png' })
After
<img src="avatar.png" />
jsx('img', { src: 'avatar.png' })
Last updated
Was this helpful?