본문 바로가기

실전 단아 개발 가이드

React.js Typescript application starter

반응형

 

https://github.com/azakharo/react-ts-starter-2023

 

GitHub - azakharo/react-ts-starter-2023: React.js Typescript application starter

React.js Typescript application starter. Contribute to azakharo/react-ts-starter-2023 development by creating an account on GitHub.

github.com

 

React.js Typescript application starter

Usage: create fast prototypes, solve test tasks.

Features:

  • You can write Typescript or Javascript code with the latest JS features.
  • Babel is used for Typescript transpilation. Typescript compiler is used for the type checking only.
  • ESLint for linting Typescript and Javascript code.
  • Auto code formatting with Prettier.
  • Fully controllable build process with Webpack (v5). There are the development, production configs. The common part is in the common config.
  • Webpack dev server with hot reloading
  • Production optimized build
  • Client-side routing (react-router v6)
  • Material UI toolkit (v5)
  • "api" sub-dir contains code for working with a backend. Axios is used.
  • Login and Main page skeletons. Dummy implementation for handling the authentication has already been added.
  • Jest configured. Tests can be written in Typescript.
  • Storybook configured.

Webpack Vs Vite

This starter uses Webpack. So, the dev server starts slowly compared to Vite.
The same is true also for code changes and live-reloading.
If you'd like to try the same starter, but with Vite, see the following link:
react-ts-vite-starter

Quick start

npm install

npm start

npm run build
반응형