Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
/ react-ts-template Public archive

Basic React template project using Typescript

Notifications You must be signed in to change notification settings

brdv/react-ts-template

Repository files navigation

Getting Started with this template

This project is a template to quickly get a new React project up and running. It was generated by Create React App, and filled with various features:

  • Basic CRA features (link)
  • ESLint with Airbnb Javascript style
  • Prettier enforcing the eslint rulse
  • Various other scripts

Available Scripts

In the project directory, you can run:

yarn start

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

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

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!

See the section about deployment for more information.

yarn lint

This will run eslint on all ts,js,tsx and jsx files. Eslint config can be found here.

yarn format

This will run prettier over all .ts,.js,.tsx and .jsx files. Prettier config can be found here.

yarn lifo

This will run both yarn lint and yarn format to get your code ready before you want to commit/push!

yarn testAll

This will yarn test with the flags --watchAll=false --coverage to get a quick overview from the code coverage for the tests that ran.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

Basic React template project using Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published