react-cli-toolkit is a small, lightweight and dependency-free CLI tool that helps you create routes for your React app in a single command! ⚡
- Zero dependencies
- Automatic route creation
- React Router DOM integration
- CSS file generation
- Global or project-level installation
- Automatic App.jsx updates
npm install -D react-cli-toolkit
"scripts": {
"page": "reactcli"
},
npm run page <route>
# example
npm run page home
# Step 1: Install globally
npm install -g react-cli-toolkit
reactcli <route>
npm run page home
This will create:
src/pages/Home/
├── Home.jsx
└── Home.css
✨ Bonus: If you haven't installed react-router-dom
, it will automatically:
- Install the package
- Update your App.jsx with the new route
Built with 💙 by Saumya Sarma
MIT License — Free for personal and commercial use.