Coder Social home page Coder Social logo

stoopkidddd / react-typescript-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 170 KB

A starter react-typescript template that avoids the extra fluff of CRA. Includes Jest/RTL, ESLint/Prettier support, and react-intl-hooks.

JavaScript 43.52% TypeScript 52.80% HTML 3.68%
react template starter-kit starter-template

react-typescript-template's Introduction

React Typescript template

This is a starter template for a React project with Typescript enabled. This does NOT use create-react-app, but is instead a more barebones template that exposes a basic babel/webpack setup.

The template is already set up to use Jest/RTL for testing and react-intl-hooks for localization.

Theming is purposefully left out for the user to decide (Material UI/Tailwind/Bootstrap/etc).

Documentation references npm, but yarn may be used as well.

Setup

NPM/Yarn install and go.

Recommended Extensions for VSCode

Some of these extensions will make development easier in VSCode.

Available Scripts

npm run dev

Runs the app in development mode

npm test

Runs jest runner for react-testing-library unit test suite

npm run build

Creates static HTML/JS in dist folder

npm run start

Servers up the static build files in dist folder

Testing

Take note of src/utils/test-utils.tsx. This file is used to setup unit tests to supply any providers to the unit tests. In this template, only IntlProvider is used, but others can be added as needed. See App.test.tsx or SampleComponent.test.tsx for examples on how it can be used.

Documentation and References

The project is using the Airbnb Style Guide with Typescript support

react-typescript-template's People

Contributors

stoopkidddd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.