A boilerplate setup for a modern React project using TypeScript, Tailwind CSS, and essential development tools.
React 19: Latest React version for building user interfaces.
TypeScript: Static type checking to improve code quality.
Tailwind CSS: Utility-first CSS framework for styling.
Jest & React Testing Library: Testing utilities for unit and integration tests.
ESLint & Prettier: Code linting and formatting.
SASS Support: Preprocessor for advanced CSS functionality.
npm install
yarn install
npm start
yarn start
Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
npm run build
yarn build
npm test
yarn test
Launches the test runner in interactive watch mode.
npm run eject
yarn eject
Removes the create-react-app configuration and makes all settings available for customization. This is irreversible.
boilerplate-react-typescript-tailwind/
├── src/ # Source code folder.
│ ├── scss/ # Global styles and Tailwind setup.
│ │ ├── global.scss/ # Global styles and Tailwind setup.
│ ├── App.tsx # Main app component.
│ ├── index.tsx # Application entry point.
├── public/ # Static files.
├── package.json # Dependencies and scripts.
├── tailwind.config.js # Tailwind configuration.
├── tsconfig.json # TypeScript configuration.
└── README.md # Project documentation.
react, react-dom - Core React libraries.
typescript - Adds TypeScript support.
sass - Enables SCSS preprocessor.
semver - Handles versioning.
Development Dependencies
tailwindcss, autoprefixer, postcss - Tailwind CSS setup.
eslint, eslint-config-react-app, eslint-plugin-react, eslint-plugin-react-hooks - Linting tools.
@testing-library/react, @testing-library/jest-dom, @testing-library/user-event - Testing utilities.
Chrome (latest)
Firefox (latest)
Safari (latest)
Edge (latest)
Contributing
Fork the repository.
Commit your changes.
Push to the branch.
Open a pull request.
This project is licensed under the MIT License.