Use until create-react-app doesn't support PostCSS 8.
- Do
git clone https://github.com/tanmayhinge/react-tailwind-template.git
or easily Generate template - In the command line, do
npm install
to install all the dependencies. npm start
⚙️
I was using Tailwind with react a lot and felt the whole process of setting up tailwind every time quite the fuss.
Create React App doesn't support PostCSS 8 yet so you need to install the Tailwind CSS v2.0 PostCSS 7. Also since Create React App doesn't let you override the PostCSS configuration natively, CRACO is used.