Hey devs ๐,
If youโve ever kicked off a new React project for a big client or internal team, you know the drill:
- Install dependencies
- Set up Axios with interceptors
- Configure Redux, React Query, routing, i18n, dark/light themesโฆ
- Spend a day fixing ESLint/Prettier configs
- And then start writing actual features ๐
After doing this way too many times, I decided to bottle up all the boring setup into one boilerplate โ so I can jump straight into building features.
Here it is:
๐ GitHub Repo: Hoang21099/react-boilerplate
What You Get Out of the Box
- โก React 18 + TypeScript for type-safe, modern apps
- ๐ Vite for blazing-fast dev & builds
- ๐จ Tailwind CSS + dark/light theme switch
- ๐ JWT-based authentication & role-based routes
- ๐ฆ Redux Toolkit + RTK Query for state & API
- ๐ i18n with English & Vietnamese
- ๐ก Error boundaries, protected routes, and graceful loading states
Why This Exists
When I was working on enterprise apps, the initial setup was always:
- Copy configs from an old project
- Update half the packages
- Break something because configs were outdated
- Spend hours debugging before writing real code
Now, I just git clone
this repo and Iโm ready to go in minutes.
Try It
git clone https://github.com/Hoang21099/react-boilerplate
cd react-boilerplate
yarn install
yarn dev
Edit .env
for your API base URL, and youโre off to the races ๐.
Final Thoughts
I built this for myself, but if it saves you time, thatโs even better.
If youโve got ideas to make it better โ drop an issue or PR.
And if you like it, a โญ on GitHub means a lot โค๏ธ.
Happy coding!
โ Hoang
Top comments (1)
Adding monorepo setup into the mix might be handy. See React Starter Kit as an example.