I’m trying to learn React, but I’ve tried with videos, documentation, everything I could, but it’s not working. It’s not throwing any errors.
If it were up to me, I would use Bootstrap, but since I’m an intern, my workplace wants me to use Tailwind.
(I using Ubuntu Linux)
I’ve looked at the documentation and tried following the videos. Often, I’ve integrated the files into different places
2
Answers
What error do you see? Can you share reproducible example in Stackblitz or Codesandbox?
Assuming you are using NPM, you can follow instructions
See https://tailwindcss.com/docs/guides/create-react-app for details
Requirements:
Make sure you have npm and node installed!
Docs recomend to use the react-app with Vite.js. Not the basic react boilerplate.
https://tailwindcss.com/docs/guides/vite
https://medium.com/@pushpendrapal_/how-to-setup-react-typescript-and-tailwind-css-with-vite-in-a-project-8d9b0b51d1bd
Now you should be able to write the tailwind code.