/react-typescript-template

Template for creating a new react app using Typescript 2.0, based on the create-react-app project from Facebook

Primary LanguageJavaScript

This is a template for creating new React+Typescript projects, based on create-react-app from Facebook.

  • No Babel
  • No eslint
  • Typescript
  • tslint
  • no Jest

Folder Structure

my-app/
  README.md
  index.html
  favicon.ico
  node_modules/
  package.json
  src/
    App.css
    App.js
    index.css
    index.js
    logo.svg

Available Scripts

In the project directory, you can run:

npm 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.

npm run 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!

npm run clean

Rimraf the build folder.