tachyons-css / tachyons-styled-react

Tachyons implemented with emotion and styled-system. Sits on create-react-app.
https://tachyons-styled-react.now.sh
200 stars 17 forks source link

Add custom JSX pragma #2

Closed jxnblk closed 5 years ago

jxnblk commented 5 years ago

This is one way to allow the use of src/elements in other files without the need to import. When the /** @jsx jsx */ custom pragma is added to the top of a module, elements like <h1> will be rendered with src/elements/H1.js instead of the default HTML element. This avoids adding any values to global scope, and is similar to how MDX renders custom HTML elements

vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.