Example · 3 days
Modern TypeScript and React
Types that pull their weight, React from the ground up, application architecture, and the tests that let you change it.
For front-end and full-stack developers.
Day 1
Modern JavaScript: async and the platform
Quarter day · Web and TypeScript · Foundation
- Promises, async/await and the event loop.
- Fetch, streams and abort signals.
- APIs that browsers and Node share.
- Lab: replace callbacks with async code that handles errors.
TypeScript: types and narrowing
Quarter day · Web and TypeScript · Foundation
- Primitive, object, array and function types.
- Inference, and when to write a type yourself.
- Unions, literal types and narrowing.
- Lab: type a small untyped module.
TypeScript: interfaces, generics and strict mode
Quarter day · Web and TypeScript · Foundation
- Interfaces, type aliases and when each fits.
- Generics and the utility types you will actually use.
- Strict mode, and adopting it in an existing codebase.
- Lab: make a module pass under strict mode.
Advanced TypeScript: schemas and runtime validation
Quarter day · Web and TypeScript · Advanced
- Types that disappear at runtime, and data that does not.
- Validating at the edges with Zod or Valibot.
- Deriving types for an API from one schema.
- Lab: share one schema between server and client.
Day 2
React: components, props and rendering
Quarter day · Web and TypeScript · Foundation
- JSX and components.
- Props, children and composition.
- How React renders, and when it renders again.
- Lab: build a page from small components.
React: state and events
Quarter day · Web and TypeScript · Foundation
- useState, events and updates.
- Lifting state up and passing it down.
- Lists, keys and conditional rendering.
- Lab: make the page interactive.
React: effects and data
Quarter day · Web and TypeScript · Foundation
- useEffect, and when not to use it.
- Fetching data and handling loading and errors.
- Custom hooks.
- Lab: load and display data from an API.
React: forms and a small app
Quarter day · Web and TypeScript · Foundation
- Controlled and uncontrolled inputs.
- Validation and submission.
- Testing components with Testing Library.
- Lab: finish a small data-driven app from a design.
Day 3
React application architecture
Quarter day · Web and TypeScript · Intermediate
- Server and client components, routing and data loading.
- State: local, shared, server cache and URL.
- Folder structure that follows the UI.
- Lab: restructure a tangled app around data flow.
React performance
Quarter day · Web and TypeScript · Intermediate
- What re-renders, and how to see it.
- Memoisation and the React Compiler.
- Suspense, transitions and streaming.
- Lab: profile a slow screen and fix it.
Accessibility: semantics and keyboard
Quarter day · Web and TypeScript · Intermediate
- Semantic HTML, landmarks and headings.
- Keyboard access and focus management.
- ARIA, and when not to use it.
- Lab: make a custom widget keyboard accessible.
Automated testing strategy
Quarter day · Software craft · Intermediate
- Unit, integration and end-to-end tests, and the balance between them.
- Tests that describe behaviour, not implementation.
- Test doubles without testing the mocks.
- Lab: test a feature at the right levels.