How to use emotion for inline css in React
Issue #647
emotion
can be used in framework agnostic or with React. To use with React, follow https://emotion.sh/docs/introduction#react
1 | npm i @emotion/core |
Note that you must have /** @jsx jsx */
at the top of the file, and the unused jsx
in import is a directive for JSX to work properly
1 | // this comment tells babel to convert jsx to calls to a function called jsx instead of React.createElement |