Skip to content

ajibade3210/typescript-in-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript In React

Typescript is a strict superset of the Javascript programming language meaning it extends Javascript with new features and syntax. Typescript is like a built-in unit test and gives us the benefit of the compiler watching our back, prompting errors even before the code is run, and adding static and strong typing to our applications.

This article is a quick guide to get you started and comfortable using Typescript in React, creating simple use cases with Typescript.

In this article

  • What is TypeScript?
  • Why do software companies prefer to use typescript?
  • Install and Configure Typescript in React.
  • How does TypeScript compile React code?
  • Understanding Typescript Types.
  • Generics in Typescript.
  • Typescript in Functional components.
  • Types for State and Props in React. source-code
  • Event and Input form handling with Typescript. source-code
  • Generating types for JSON Documents. source-code
  • Make A Promises with Typescript.

Create project

npx create-react-app my-app --template typescript

In the project directory, you can run:

npm start

Article Link

About

Blog Post Guide. Mastering Typescript In React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published