A React TypeScript + Tailwind template powered by CRACO.
Follow these steps to get started:
-
Clone the repository:
git clone https://github.com/heischichou/React-Typescript-Template
-
Navigate to the project directory:
cd react-typecript-template
-
Install the dependencies:
npm install
-
Start the development server:
npm run start
Runs the app in the development mode at http://localhost:3000.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run start
Launches the test runner in the interactive watch mode.
npm run test
Builds the app for production to the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
npm run build
This command will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
Note: This is a one-way operation. Once you eject
, you can’t go back!
npm run eject
The project structure follows a standard React application layout:
react-typescript-template/
├── node_modules/ # Project dependencies
├── public/ # Public assets
├── src/ # Application source code
│ ├── styles/ # CSS stylesheets
│ │ └── App.css # Default stylesheet
│ ├── tests/ # App tests
│ │ └── App.test.tsx # App test
│ ├── App.tsx # Application entry point
│ ├── index.css # Application stylesheet
│ └── index.tsx # Main rendering file
├── craco.config.js # CRACO configuration
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
This project is licensed under the MIT License. See the LICENSE file for details.