/react-template

React template repo with Typescript, Eslint, Prettier, CSS Modules

Primary LanguageTypeScript

React Template

Takes the created app from create-react-app yarn create react-app practice-app --template typescript and adds a few additional pieces of boiler plate:

  1. Adds eslint for linting yarn run lint
  2. Adds prettier for tidying yarn run prettier-format
  3. Adds css module support for TSX components

Taken from the create-react-app docs

npm start or yarn start

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

Build errors

npm test or yarn test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

Read more about testing.

npm run build or yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.