<your-description-here>
npm install react-twd-router-bp> โ ๏ธ WARNING:
> Do NOT use npm i react-twd-router-bp to install this package. This is a CLI tool and should be run with npx react-twd-router-bp.
> Using npm i will not scaffold your project and is not the intended usage.
This boilerplate provides a ready-to-use setup for building React applications with Vite, Tailwind CSS, and React Router. It includes basic routing, ESLint configuration, and a clean project structure to help you start quickly and customize to your style.
src/pages, src/routes, etc.)To scaffold a new React + Vite + Tailwind CSS + React Router project, run:
```
npx react-twd-boiler
1. Project Name:
The CLI will prompt:
What will your project name be?
2. Latest Packages Only:
The CLI will always install the latest versions of React, Tailwind CSS, and React Router. There is no option to select specific versions.
3. Project Creation:
The CLI will copy the boilerplate files, update dependencies, and install everything automatically.
``
cd
npm run dev
Open http://localhost:5173 to view your app.
``
โโโ public/
โโโ src/
โ โโโ assets/
โ โโโ pages/
โ โ โโโ Home.jsx
โ โ โโโ Error.jsx
โ โโโ routes/
โ โ โโโ Routes.jsx
โ โโโ index.css
โ โโโ main.jsx
โโโ package.json
โโโ README.md
โโโ vite.config.js
โโโ ...
- Add new pages in src/pages and update src/routes/Routes.jsx for routing.src/index.css
- Customize styles in and Tailwind config.eslint.config.js
- Update ESLint rules in as needed.
Tailwind is already configured. Use its utility classes in your components. For custom configuration, edit tailwind.config.js.
``
npm run build
```
npm run lint
MIT