Open Silence-dream opened 1 year ago
https://emotion.sh/docs/introduction
npm i @emotion/css
import { css } from '@emotion/css' const color = 'white' render( <div className={css` padding: 32px; background-color: hotpink; font-size: 24px; border-radius: 4px; &:hover { color: ${color}; } `} > Hover to change color. </div> )
https://emotion.sh/docs/introduction