Mastering React | With Redux, Flux, Unit Testing, JSX & More

Modern Web Development with React: Essentials, Best Practices, Redux / Flux, Forms, Routing, Hooks, Unit Testing / Jest & More

TT4195

Introductory and Beyond

5 Days

Course Overview

Mastering React is a comprehensive hands-on course that aims to be the single most useful resource on getting up to speed quickly with React.  Geared for more experienced web developers new to React, this course provides students with the core knowledge and hands-on skills they require to build reliable, powerful React apps. After the first few modules, you’ll have a solid understanding of React’s fundamentals and will be able to build a wide array of rich, interactive web apps with the framework. The first module is an introduction to the new functionality in ECMAScript 6 (JavaScript). Client-side routing between pages, managing complex state, and heavy API interaction at scale are also covered.

This course consists of two parts.  In the first part of the course students will explore all the fundamentals with a progressive, example-driven approach. You’ll create your first apps, learn how to write components, start handling user interaction, and manage rich forms. We end the first part by exploring the inner workings of Create React App (Facebook’s tool for running React apps), writing automated unit tests, and building a multi-page app that uses client-side routing.

The latter part of the course moves into more advanced concepts that you’ll see used in large, production applications. These concepts explore strategies for data architecture, transport, and management:

  • Redux is a state management paradigm based on the Flux architecture. Redux provides a structure for large state trees and allows you to decouple user interaction in your app from state changes.
  • Hooks is the powerful, new way to maintain state and properties with functional components and the future of React according to Facebook.

Hands-on Learning: Every project in this course was built using Create React App. Create React App is based on Webpack, a tool which helps process and bundle our various JavaScript, CSS, HTML, and image files. We explore Create React App in-depth in the module “Using Webpack with Create React App.”

  • Students will build Single Page Applications (SPA), create robust routing with error handling, and both class and functional reusable components.
  • The lab project will also include the use of form validation.
  • The Flux and Redux parts of the lab project will assist the student in understanding the use of advanced state in React.
  • The lab project will importantly unit test the application using both Jest and Enzyme.

Working in a hands-on learning environment, guided by our expert team, attendees will learn about and explore:

  • A comprehensive understanding of core React components
  • An advanced, in-depth knowledge of how React works
  • A complete understanding of using Redux
  • How to build, validate, and populate interactive forms
  • How to use inline styles for perfect looking components
  • How to test React components
  • How to build and use components
  • A deep understanding of data-driven modeling with props and state
  • How to use client-side routing for pages in your apps
  • How to debug a React application

Course Objectives

Our engaging instructors and mentors are highly experienced practitioners who bring years of current "on-the-job" experience into every classroom. Working in a hands-on learning environment, guided by our expert team, attendees will learn about and explore:

  • A comprehensive understanding of core React components
  • An advanced, in-depth knowledge of how React works
  • A complete understanding of using Redux
  • How to build, validate, and populate interactive forms
  • How to use inline styles for perfect looking components
  • How to test React components
  • How to build and use components
  • A deep understanding of data-driven modeling with props and state
  • How to use client-side routing for pages in your apps
  • How to debug a React application

Need different skills or topics?  If your team requires different topics or tools, additional skills or custom approach, this course may be further adjusted to accommodate.  We offer additional React, web development and design courses which may be blended with this course for a track that best suits your development objectives.

Course Prerequisites

This fast-paced course is for intermediate skilled web developers new to React who have prior experienced working HTML5, CSS3 and JavaScript.

Take Before: Attendees should have experience with the topics in the following courses, or should have recently attended these as a pre-requisite:

  • TT4003:         Introduction to HTML5 / CSS3 & JavaScript Essentials

Please see the Related Courses tab for specific Pre-Requisite courses, Related Courses that offer similar skills or topics, and next-step Follow-On Courses and Learning Path recommendations.

Course Agenda

Please note that this list of topics is based on our standard course offering, evolved from typical industry uses and trends. We will work with you to tune this course and level of coverage to target the skills you need most.

ES6 Primer
Prefer const and let over var
Arrow functions
Modules
Object.assign()
Template literals
The spread operator and Rest parameters
Enhanced object literals
Default arguments
Destructuring assignments

Your first React Web Application (Overview)
Setting up your development environment
JavaScript ES6 /ES7
Getting started

Using Webpack with Create React App
JavaScript modules
Create React App
Exploring Create React App
Webpack basics
Making modifications
Hot reloading; Auto-reloading
Creating a production build
Ejecting  
 
Class and Functional Components
What’s a component?
Class components
Functional components - Motivation behind Hooks
How Hooks Map to Component Classes
Our first component  
Building the App  
Props - Making the App data-driven
Props – this.props vs props
Events - Your app’s first interaction
useEffect() Hook Example
State - Updating state
useState() Hook Example
 
JSX and the Virtual DOM (Overview)
React Uses a Virtual DOM  
Why Not Modify the Actual DOM?
What is a Virtual DOM?
Virtual DOM Pieces
ReactElement

EXTRA READING MATERIAL - JSX
JSX Creates Elements
JSX Attribute Expressions  
JSX Conditional Child Expressions
JSX Boolean Attributes
JSX Comments
JSX Spread Syntax
JSX Gotchas

Forms  
Forms 101
Text Input
Multiple fields
Validation

Routing
What’s in a URL?
React Router’s core components
Building the components of react-router  

Unit Testing & Jest
Writing tests without a framework
What is Jest?
Using Jest
Testing strategies for React applications
Testing a basic React component with Enzyme  

Components – with both class and functional examples
A time-logging app
Getting started
Breaking the app into components  
The steps for building React apps from scratch
Step 2: Build a static version of the app
Step 3: Determine what should be stateful  
Step 4: Determine in which component each piece of state should live
Step 5: Hard-code initial states
Step 6: Add inverse data flow  
Updating timers
Deleting timers
Adding timing functionality
Add start and stop functionality  
Methodology review
 
Advanced Component Configuration with props, state, and children (Overview)
PropTypes
Context  
useContext() Hook Example
More on state
Talking to Children Components with props.children  

Flux and Redux Basics
Why Flux?
Flux is a Design Pattern
Flux implementations
Redux & Redux’s key ideas
Building a counter  
The core of Redux  
The beginnings of a chat app
Building the reducer()
Subscribing to the store
Connecting Redux to React  

Intermediate Redux
Using createStore() from the redux library
Representing messages as objects in state
Introducing threads
Adding the ThreadTabs component
Supporting threads in the reducer
Adding the action OPEN_THREAD  

BONUS CONTENT / Time permitting
Debugging React
Using React Developer Tools
Using Visual Studio Code
OPTIONAL - Using the Chrome F12 Debugger
React Hooks
Using Custom Hooks
REST
REST Basics
Using fetch
Using axios

 

Course Materials

Student Materials: Each participant will receive a Student Guide with course notes, code samples, software tutorials, step-by-step written lab instructions, diagrams and related reference materials and resource links. Students will also receive the project files (or code, if applicable) and solutions required for the hands-on work. Any courseware of lab materials provided in a cloud (if applicable) will also be made available to you separately.

Hands-On Setup Made Simple! Our dedicated tech team will work with you to ensure our ‘easy-access’ cloud-based course environment, or local installation, is accessible, fully-tested and verified as ready to go well in advance of the course start date, ensuring a smooth start to class and effective learning experience for all participants. We can also help you install this course locally if preferred. Please inquire for details and options.

Every-Course Extras = High-Value & Long-Term Learning Support! All Public Schedule courses include our unique EveryCourse Extras package (Post-Course Resource Site access with Review Labs & Live Instructor Follow-on Support, access to QuickSkills recorded High-Value lessons, Free *Live* Course Refresh Re-Takes, early access to Special Offers, Free Courses & more). Please inquire for details.

Raise the bar for advancing technology skills

Attend a Class!

Live scheduled classes are listed below or browse our full course catalog anytime

Special Offers

We regulary offer discounts for individuals, groups and corporate teams. Contact us

Custom Team Training

Check out custom training solutions planned around your unique needs and skills.

EveryCourse Extras

Exclusive materials, ongoing support and a free live course refresh with every class.

Attend a Course

Please see the current upcoming available open enrollment course dates posted below. Please feel free to Register Online below, or call 844-475-4559 toll free to connect with our Registrar for assistance. If you need additional date options, please contact us for scheduling.

Course Title Days Date Time Price
Mastering React | With Redux, Flux, Unit Testing, JSX & More 5 Days Mar 7 to Mar 11 10:00 AM to 06:00 PM EST $2,595.00 Enroll
Mastering React | With Redux, Flux, Unit Testing, JSX & More 5 Days Apr 25 to Apr 29 10:00 AM to 06:00 PM EST $2,595.00 Enroll
Mastering React | With Redux, Flux, Unit Testing, JSX & More 5 Days Jun 6 to Jun 10 10:00 AM to 06:00 PM EST $2,595.00 Enroll
Mastering React | With Redux, Flux, Unit Testing, JSX & More 5 Days Jul 25 to Jul 29 10:00 AM to 06:00 PM EST $2,595.00 Enroll
Mastering React | With Redux, Flux, Unit Testing, JSX & More 5 Days Aug 22 to Aug 26 10:00 AM to 06:00 PM EST $2,595.00 Enroll

New Year, New Savings! 20223FOR1!
Enroll before Feb 15 for any THREE public classes in 2022 for the price of ONE! 

Click for Details & Additional Offers

Learn. Explore. Advance!

Extend your training investment! Recorded sessions, free re-sits and after course support included with Every Course
Trivera MiniCamps
Gain the skills you need with less time in the classroom with our short course, live-online hands-on events
Trivera QuickSkills: Free Courses and Webinars
Training on us! Keep your skills current with free live events, courses & webinars
Trivera AfterCourse: Coaching and Support
Expert level after-training support to help organizations put new training skills into practice on the job

The voices of our customers speak volumes

Special Offers
Limited Offer for most courses.

SAVE 50%

Learn More