Using Typescript with modern React (i.e. hooks, context, suspense)

twitter logo ・1 min read

In this video you will learn how to add typescript to a create-react-app project as well as adding it to a react project from scratch with webpack and babel. You will learn a bit about react hooks, (useState, useContext, useReducer and useEffect), in a react typescript project as well as using suspense to lazy load a component. We will also attempt to recreate redux, (or the redux principles) with useReducer and Context.

twitter logo DISCUSS
Classic DEV Post from Feb 22

What's your Wifi's name?

Tell me the funniest ones you've seen!

Learn to Code profile image

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️