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.
NPM/Yarn install and go.
Some of these extensions will make development easier in VSCode.
Runs the app in development mode
Runs jest runner for react-testing-library unit test suite
Creates static HTML/JS in dist folder
Servers up the static build files in dist folder
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.
The project is using the Airbnb Style Guide with Typescript support