Loading tutorials
tsconfig.json, learn what each option does, and see the errors that appear when an option is wrong or missing.5 min readinterface and type, which one to pick, and which mistakes the compiler catches or misses.5 min readprops.children is in JSX, and are comfortable with TypeScript unions and interfaces. It also assumes you have a project with strict enabled, as set up earlier in this tutorial.4 min readuseState, and that you know TypeScript unions and generics. It also assumes your project already uses the strict setting from the setup chapter. Without strict, many of the errors below will not appear.4 min readuseState, when you need to supply the type yourself, and how to model state that changes shape over time. It assumes you know basic React (function components, props, state, JSX) and TypeScript fundamentals (interfaces, unions, generics). It 4 min readstrict setup from the first chapter. It also assumes you can type useState.4 min readReactNode types children, and you have seen React's event types such as ChangeEvent<HTMLInputElement>. It builds on those to show how a wrapper component accepts everything the underlying DOM ele5 min readstrict turned on.6 min readuseState, and the TypeScript basics of unions, generics, and as const. You should also have a project configured with strict: true, as covered earlier in this tutorial.5 min readkeyof. You will build a List component whose item type is inferred from its props. Then you will constrain it, extend it, and avoid the common errors.4 min readuseRef works in a TSX project, how to type props, and how ComponentPropsWithoutRef extends native element props. It also assumes you can read a generic type parameter. The examples target React 18 types and note where React 19 differs.5 min read