Why does the with-tailwind example import react into the button? #3016
-
In the example with-tailwind, the share Button component imports React. Why does it do that? It doesn't seem to use react there Same Question about the index.tsx file there, why export React? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
.jsx
is just a sugar for IDEs and DX. So, you can assume it as.js
. To use jsx in js you also need to importReact
to compile JSX syntax to something like magic lol.