Understanding JSX pragma #1620
-
What is the difference between I saw both of the instances being used in the documentation sx-prop. |
Beta Was this translation helpful? Give feedback.
Answered by
mrmartineau
Apr 1, 2021
Replies: 1 comment
-
@iamskok they are actually explained in more detail here: https://theme-ui.com/api#jsx-runtime Top line: use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lachlanjc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@iamskok they are actually explained in more detail here: https://theme-ui.com/api#jsx-runtime
Top line: use
/** @jsxImportSource theme-ui */
if you use React's automatic JSX runtime, as explained in this blog post, otherwise use/** @jsx jsx */