Getting Started with React-TypeScript Key Commands and Setup Guide
Create React App Introduction
This project uses Create React App with TypeScript support to help you set up quickly. In the project directory, you can run several scripts:
1. Start Development
Run yarn start
to launch the app in development mode. Open it in your browser to see the application. When you make edits, the page will automatically reload, and any linting errors will be displayed in the console.
2. Running Tests
Start the test runner with yarn test
in an interactive watch mode. For more detailed test information, refer to the 'Testing in Create React App' section.
3. Building for Production
Use yarn build
to compile the app for production into the build
folder. The build is optimized, minimized, and hashed to ensure optimal performance and readiness for deployment.
4. Ejecting
Note: This is a one-way operation. If the default build configurations do not meet your needs, you can run yarn eject
to take control over all configuration files. This command will remove a single build dependency from your project and copy configuration files (like webpack, Babel, ESLint, etc.) and transitive dependencies directly into your project.
评论区