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 not required, but recommended
Target Audience
Front-end and full-stack developers, tech leads, and QA engineers who build or maintain React single-page applications. Teams continuing on can move to Advanced React.
Description
This hands-on course teaches React with JavaScript. Students set up a Vite project and learn how JSX, the virtual DOM, and keys shape rendering. They build function components with props, events, and hooks, including the use hook and custom hooks. Forms with validation and form Actions come next, followed by REST APIs, the Backend-for-Frontend pattern, and React Router. The course ends with unit tests in Vitest and React Testing Library, plus optional segments on AI coding tools.
Learning Outcomes
- Set up a React project with Vite.
- Explain single-page architecture and where server-side rendering fits.
- Render UI with JSX, fragments, conditional operators, and keyed lists.
- Build reusable function components with props and the
childrenprop. - Handle events and pass callbacks between components.
- Manage state and effects with hooks, including the
usehook and custom hooks. - 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
- 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
- Destructuring props and default values
- The
childrenprop - Passing functions as props
- 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
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)