Skip to content

Why does the with-tailwind example import react into the button? #3016

Closed Answered by theaungmyatmoe
mrv777 asked this question in Help
Discussion options

You must be logged in to vote

.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 import React to compile JSX syntax to something like magic lol.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrv777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants