Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
一套基于 React 19、TypeScript 和 Vite 的现代化前端项目模板,开箱即用,集成了路由、状态管理、请求封装与代码规范。

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
React-Ts-Template is an open-source front-end boilerplate built on React 19, TypeScript, and Vite that scaffolds a production-ready React project with routing, state management, request encapsulation, and code quality tooling already configured.
React-Ts-Template is a GitHub-hosted project template for starting React applications quickly; it takes a standard source layout and pre-configured tooling and outputs a runnable app with route lazy loading, route guards, a Zustand store, an Axios wrapper, and linting setup. It was created by huangmingfu as a modern replacement for create-react-app, which is no longer maintained. The template is published under the MIT license and is intended to be cloned and adapted for new projects.
router layer includes lazy-loaded routes to reduce initial bundle size and a guard system to control access before a route is entered.store folder shows cross-component state sharing with the lightweight Zustand library.service folder wraps Axios to unify how HTTP requests and responses are handled, simplifying backend integration.*.module.scss) supported for local scoping.prettier-plugin-sort-imports plugin is integrated so import statements are reordered automatically for readability.To start a project, clone the repository, run pnpm install to install dependencies, then pnpm dev to start the development server. For production, run pnpm build:pro to build the app. The template also includes environment variable files, a local reverse proxy for development, and build-time code splitting configuration.
Pros
Cons
Yes. Run pnpm install [email protected] [email protected] to downgrade the project to React 18. The template does not rely on React 19-specific features.
React does not provide a keep-alive mechanism like Vue. The template recommends lifting the state to a parent component or using CSS visibility to avoid unmounting the component, as explained in the README.
Yes, the project is licensed under the MIT License, so you can freely use, modify, and distribute it.
The template uses pnpm for dependency management and scripts. The quick-start commands are pnpm install, pnpm dev, and pnpm build:pro.
