This is learning section to make web based app with React js and Tailwind CSS framework.
to start from scratch:
Install react :
npx create-react-app
Install Tailwind CSS package & stuff :
npm install tailwindcss postcss-cli autoprefixer
Install Tailwind CSS js :
npx tailwind init tailwind.js --full
Make post CSS config file :
touch postcss.config.js
Make tailwind.css file
Config package.json, then change and add some script in the scripts section :
"start": "npm run watch:css && react-scripts start",
"build": "npm run build:css && react-scripts build",
"build:css": "postcss src/assets/tailwind.css -o src/assets/main.css",
"watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
Finally, start program & make some web :
npm start