Outline updated November 2026
React Essentials
Class Duration
21 hours of live training delivered over 3-5 days to accommodate your scheduling needs
Student Prerequisites
- Experience with HTML, CSS, and JavaScript
- Experience with client-side web application programming and TypeScript not required, but recommended
Target Audience
Software engineers, tech leads, and front-end developers who want a practical grounding in React with TypeScript. Teams continuing on can move to Advanced React.
Description
This hands-on course teaches React with TypeScript for developers who want static typing from the start. Students set up a Vite project, then build typed function components with JSX, props, and events. Hook modules cover state, effects, the use hook, and reusable hooks with generic types. Students then build forms with form Actions, call REST APIs through a Backend-for-Frontend, and add React Router. Unit testing with Vitest and React Testing Library closes the course, and optional segments use AI tools for architecture and tests.
Learning Outcomes
- Set up a React and TypeScript project with Vite.
- Explain React's rendering model, JSX, and the virtual DOM.
- Build statically typed function components with default props.
- Handle component events and pass handlers through props.
- Manage state and effects with hooks, including the
usehook. - Write reusable custom hooks with TypeScript generics.
- Build validated forms, including form Actions with
useActionState. - Call REST APIs with fetch and the Backend-for-Frontend pattern.
- Add routing with React Router, including params, nesting, and 404 handling.
- Unit test components and hooks with Vitest and React Testing Library.
Training Materials
All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.
Software Requirements
Students will need a free, personal GitHub account to access the courseware. Students will need permission to install Node.js and Visual Studio Code on their computers. Also, students will need permission to install NPM Packages and Visual Studio Code Extensions. If students are unable to configure a local environment, a cloud-based environment can be provided.
Versions covered: React 19, React Router 8, Vite, and Vitest on a current Node.js LTS release.
Training Topics
React Project Setup
- Creating a project with Vite
- Folder structure
- Browser support
- Styles and assets
- Dependencies
- JavaScript vs. TypeScript
- Setting up AI agent tools (optional)
React Overview
- What is React?
- Why React?
- Single-page web application architecture
- Server-side rendering (brief overview)
Component Rendering and JSX
- What problem does JSX solve?
- Embedding expressions
- Specifying attributes
- Using fragments
- Virtual DOM and Fiber nodes
- The ternary operator (
? :) - Logical
&&and||operators - Rendering a list of data
- Optimizing rendering with keys
Components
- Creating an element
- Creating a function component
- Rendering a component
- Composition and reuse
Component Props
- Immutable props
- String literals vs. expressions
- Statically typed components
- Default prop values
- Naming patterns for props
Component Events
- What are events?
- Click and change events
- Event handlers in function components
- Passing event handlers via props
Component Hooks
- What is component state?
- The
useStatehook - The
useEffecthook - The
useCallbackhook - The
usehook - Custom hooks
- Reusable hooks with generic types
Component Architecture
- Reusable components
- Component communication
- Design patterns
- Container and presentation components
- Prop drilling
- Defining architecture with AI tools (optional)
Capture Data with Forms
- Controlled and uncontrolled components
- Change logic across form controls
- Wiring up
input,textarea, andselect - Handling different input types
- Form validation and submission
- Form Actions
useActionStateanduseFormStatus- React form hook libraries (optional)
AJAX and RESTful APIs
- Fetch API
- Getting data from a REST API
- Loading data on first render with
useEffect - Adding, replacing, and removing API data
- The Backend-for-Frontend (BFF) pattern
- GraphQL and Apollo (brief overview)
Routing with React Router
- What problem does React Router solve?
- Installation
- Routing basics
- Handling not found (404) routes
- URL and query parameters
- Nested routes
- Framework mode (brief overview)
Unit Testing Overview
- Vitest and React Testing Library
- Moving from Jest to Vitest
- What are React components tested for?
- Tests, suites, assertions, and mocks
- Testing DOM rendering
- Testing event handlers with spies
- Testing custom hooks
- Mocking components
- Mocking hooks
- Generating tests with AI agent tools (optional)