README.md
December 19, 2025 ยท View on GitHub
Introduction
๐๐๐ lemon-mobile-react is built using the latest technologies, including React19, Vite7, TanStack Router, TanStack Query, Daisyui, Zustand, TypeScript, and Tailwindcss V4. It integrates features like Dark Mode, system theme colors, and Mock data.
You can directly start developing your business logic on this template! Hope you enjoy it. ๐๐๐
Note
If this project is helpful to you, please click the "Star" button in the top-right corner. Thank you!
Preview
๐ Click Demo (Switch to mobile view on PC browsers)
Other Templates
- lemon-mobile-vue - A mobile web app template based on the Vue 3 ecosystem
- lemon-mobile-uniapp - A mobile web app template based on the UniApp ecosystem
Features
- โก๏ธ Developed with
React+Hooks - โจ Uses
Vite7as the development and build tool (includesGzippackaging,TSXsyntax, proxy support, etc.) - ๐ Fully integrates
TypeScript - ๐ฆ Uses
TanStack Routerfor routing management, providing a type-safe routing system - ๐ Uses
TanStack Queryfor server state management, simplifying data fetching and caching - ๐ Uses
Zustandfor state management, lightweight, simple and easy to use - ๐ฆ
@reactuses/coreHigh quality and reliable React Hooks library - ๐จ
Daisyuicomponent library - ๐
Tailwindcssfor instant atomic CSS engine - ๐ Integrates multiple icon solutions
- ๐ Supports Dark Mode
- ๐ Multi-language support with
i18n - ๐ฅ Integrates
EChartsfor data visualization, withuseEChartsHooks encapsulation - โ๏ธ Uses
Vitestfor unit testing - โ๏ธ
Axiosencapsulation - ๐พ Local
Mockdata simulation support - ๐ฑ Browser compatibility
- ๐ฅ
Gzipcompression for packaged resources - ๐ก๏ธ First screen loading animation
- ๐ช Integrates
Eslintcode validation standards, withPrettieras the default code formatter - ๐ Uses
simple-git-hooks,lint-staged, andcommitlintto standardize commit messages
Prerequisites
Familiarity with the following concepts will help you use this template effectively:
- React - Familiar with
Reactbasic syntax - Vite - Understand
Vitefeatures - Zustand - Proficient in using
Zustand - TypeScript - Master basic
TypeScriptsyntax - TanStack Router - Familiar with
TanStack Routerbasic usage - Icones - Recommended icon library for the project, but
SVG Iconis also an option - Tailwind CSS - High-performance and extremely flexible instant atomic CSS engine
- @reactuses/core - A high-quality and reliable React Hooks library
- Daisyui - Tailwind CSS plugin for faster, cleaner, and simpler Tailwind CSS development
- ECharts6 - Familiar with basic
EChartsusage - Mock.js - Understand basic
Mock.jssyntax - ES6+ - Proficient in
ES6+syntax
Environment Setup
Ensure the following tools are installed locally: Pnpm, Node.js, and Git.
- Recommended to use pnpm>=8.15.4, otherwise dependencies may not install properly, causing build errors.
- Node.js version requirement is
18.xor above. Recommended:^18.18.0 || >=20.0.0.
VSCode Extensions
If you use VSCode (recommended), install the following extensions for improved development efficiency and code formatting:
- Tailwind CSS IntelliSense - Tailwind CSS IntelliSense plugin
- DotENV -
.envfile highlighting - Error Lens - Better error visualization
- EditorConfig for VS Code - Maintain consistent coding styles across IDEs
- ESLint - Script linting
- i18n Ally - All-in-one i18n support
- JavaScript and TypeScript VSCode Snippets - Visual Studio Code snippets for JavaScript and TypeScript
- React Collection VSCode Snippets - A React Code Snippets Extension
Usage
Use the CLI
# Copy the command - 'project' is your project name
pnpm create lemon project -t mobile-react
GitHub Template
Use this template to create a repository
Clone
# Clone the project
git clone https://github.com/sankeyangshu/lemon-mobile-react.git
# Enter the project directory
cd lemon-mobile-react
# Install dependencies - recommended to use pnpm
pnpm install
# Start the development server
pnpm dev
# Build for production
pnpm build
Git Commit Guidelines
Commit Standards
The project enforces Git commit messages using simple-git-hooks and commitlint, adhering to the widely adopted Angular guidelines.
feat: Add new featuresfix: Fix bugsdocs: Documentation changesstyle: Code formatting (does not affect functionality, e.g., spacing, semicolons, etc.)refactor: Code refactoring (neither bug fixes nor new features)perf: Performance optimizationstest: Add or update test casesbuild: Changes to build process or external dependencies (e.g., updating npm packages, modifying webpack configuration)ci: Changes to CI configuration or scriptschore: Changes to build tools or auxiliary libraries (does not affect source files or tests)revert: Revert a previous commit
Community
You can use issues to report problems or submit a Pull Request.
Browser Support
- For local development, we recommend using the latest version of Chrome. Download.
- The production environment supports modern browsers. IE is no longer supported. For more details on browser support, check Can I Use ES Module.
![]() IE | ![]() Edge | ![]() Firefox | ![]() Chrome | ![]() Safari |
|---|---|---|---|---|
| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
License
MIT License ยฉ 2023-PRESENT sankeyangshu




