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.