typescript-react-app-kickstart-guide icon indicating copy to clipboard operation
typescript-react-app-kickstart-guide copied to clipboard

Kickstart guide for React Redux Apps written in TypeScript

DEPRECATED! Create React APP and Redux Toolkit made it simple to set up react & redux with typescript.

React TypeScript kickstart

This the source for a guide for kickstarting a new React project with preconfigured Redux, TypeScript, Storybook and testing - all powered by docusaurus. If you find errors, inconsistencies or want to contribute: Feel free to submit issues & pull requests.

Prerequisites

These tools are needed to start developing.

# node version management
brew install nvm

# node (latest lts version)
nvm install --lts

# yarn
brew install yarn --without-node

Editor

We recommend to use VSCode as editor. Install the following Extensions:

  • TSLint -> linting support directly in editor (marketplace)
  • Type safe React & Redux Snippets in TypeScript -> Snippets for boilerplate code as shown in Cookbook (marketplace)

Cookbook

In the cookbook you will find skeletons for important modules. These skeletons are also available for VSCode as snippets in the VSCode marketplace.

Example (Component with defaultProps)

Look, Ma' - Intellisense!

component with defaultProps example