Loopskey-logo
CourseTechnology

Typescript in React: useContext, useReducer, Type assertion

By External Provider

Price

Free

Go to content

Opens coursera.org in a new tab

Level

INTERMEDIATE

Duration

2 h

About this course

By the end of this course you will be able to incorporate state management with useContext and useReducer in a Typescript React application. We will start by revisiting React concepts of useReducer and useContext so we can better focus on the Typescript concepts and behaviours. This course is aimed at developers who are familiar with Typescript and understand the basics and would like to have some more experience, especially using some of the more advanced state management patterns in React. We will recap the React concepts We simplify these concepts and then use repetition to actually use these types in real React components.

What you will learn

  • Implement Typescript typing within React applications
  • Utilise useContext and convert to typescript
  • Combine useReducer and useContext and overcome any complications with the Typescript engine when typing the app flow.