I want to make a project with react.js and style it using tailwind.css, is that possible? and how
Hopefully the merging between react.js and styling tailwind.css can be done in one pack
CodePudding user response:
There is official guide for most used frameworks, including react https://tailwindcss.com/docs/installation/framework-guides
CodePudding user response:
npx create-react-app (project name)
cd (project name)
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
then configure you template paths by adding the paths to all your template files in the tailwind.config.js
docs: https://tailwindcss.com/docs/guides/create-react-app
CodePudding user response:
Hello I can see that this is your first post so I suggest reading the following post made on How to ask.
Also please keep in mid that StackOverflow isn't made to discuss ideas but more getting help while trying to do something.
Then we'll be able to help.
So to answer your question
Yes, You can use Tailwind with React and I suggest the following guide, So you can setup the whole think step by step!