Skip to content

Personal Typescript and React guidelines for new and existing projects

License

Notifications You must be signed in to change notification settings

MarkusBansky/ts-guidelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript & React Guidelines

Welcome to my personal Typescript & React application guidelines. In this project I keep my references to typescript styleguide, project architecture guide, and a list of useful tools for React and Typescript development.

Index

Basic React stack

  • react - the React itself. Start new app with npx create-react-app my-app --template typescript only.
  • node-sass - a tool used to implement scss and sass styles in the app, which later compile into plain css with this package.
  • redux - plain Redux package, which is used to handle React objects store for the whole app.
  • react-redux - a package used to bind Redux with React UI.
  • immer - a package used to correctly mutate immutable Redux state, as well as simplify the reducer creation.
  • redux-axios-middleware - redux middleware that handles axios http requests to the API through reducers. This middleware keeps track of all events over state and is easy to implement via reducers.
  • redux-logger - ultra-useful tool to keep eye-track over the Redux state of the app and actions implemented over it.
  • react-router - package which takes care of your pages composition and redirects, links, view history, etc.
  • react-hook-form - also very great package to easily develop and handle pro-like forms in react.

Useful tools for React app development with Typescript

  • Typescript eslint - ( a new version of tslint which was deprecated in 2019), can be used to check your code style on the fly.
  • TS Formatter tsfmt - used to format typescript files on the fly or from the cmd. A powerful tool to use for automation to keep the code clean during build or deployment.
  • Jest jest - a testing library for react applications. Jest is a delightful JavaScript Testing Framework with a focus on simplicity and it works charmly with Typescript.

About

Personal Typescript and React guidelines for new and existing projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published