A minimal starter kit for building React applications with TypeScript and Webpack.
- React 19 with TypeScript support
- Webpack for bundling and development
- Babel for transpilation (ES6+ to ES5)
- ESLint and Prettier for code linting and formatting
- Support for CSS, SCSS, and image files
- Framer Motion for animations
- Hot reloading with webpack --watch
-
Clone the repository:
git clone <repository-url> cd start-react-app-ts
-
Install dependencies:
npm install # or yarn install
Run the development server with hot reloading:
npm run start:devThis will watch for changes and rebuild automatically.
Build the application for production:
npm run buildThe built files will be in the dist/ directory.
Run ESLint to check code quality:
npm run lintsrc/
├── App.tsx # Main app component
├── index.tsx # Entry point
└── index.css # Styles
public/
└── index.html # HTML template
webpack.config.js # Webpack configuration
tsconfig.json # TypeScript configuration
package.json # Dependencies and scripts
npm run start:dev: Start development mode with watchingnpm run build:dev: Build in development modenpm run build: Build for productionnpm run lint: Lint the code
- React: UI library
- TypeScript: Typed JavaScript
- Webpack: Module bundler
- Babel: JavaScript transpiler
- ESLint: Linting
- Prettier: Code formatting
- Framer Motion: Animation library
tontonCode
MIT