Introduction to Redux for React using JavaScript/ECMAScript

2 Ratings

Course Number: RCT-122
Duration: 2 days (13 hours)
Format: Live, hands-on

Redux Training Overview

Redux is a predictable state container for React. As React applications become more complex, developers often find a need for more structure around the data or state they are managing in their application. The Redux JavaScript library provides an elegant solution for this need.

This Introduction to Redux for React using JavaScript/ECMAScript training teaches developers the skills they need to immediately use Redux in their React applications.

Note: This Redux class can also be taught using TypeScript.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand state management including when it is needed and the various alternatives
  • Utilize Redux to manage the state of the application
  • Use React and Redux together
  • Implement React and Redux best practices
  • Write unit tests for React using Jest and React Testing Library

Prerequisites

Attendees must have prior React development experience.

Outline

Expand All | Collapse All

Introduction
State Management
  • What is State?
  • When do you need a State Management library?
  • Alternatives to Redux
  • Using Context for Shared State
  • Server State: React Query, SWR, or GraphQL client
Redux
  • What is Redux?
  • Benefits Checklist
  • Principles of Redux
  • Core Concepts (Store, State, Reducers, Actions, Action Creators)
  • Complementary Packages
  • When do you need Redux?
  • Basic Redux Example (includes time traveling)
  • Gotchas/Tips
Using Redux with React (React Redux Library)
  • Redux with React in Function Components
  • useSelector and useDispatch Hooks
  • Provider
  • Example
  • Redux with React in Class Components
  • Higher-Order Components
  • The connect function
  • Writing mapState functions
  • Writing mapDispatch Functions
  • Example
Asynchronous Actions (Redux Thunk)
  • Overview
  • Async Actions (Thunks)
  • Installation
  • Your First Thunk
  • Full CRUD Example
Putting It All Together (React & Redux & Thunk)
Testing
  • Tools (Jest, React Testing Library or Enzyme)
  • Syntax
  • Testing Vanilla JavaScript with Jest
  • Mocking
    • Mocking Modules
    • Mocking Functions
  • Debugging Tests
  • Component Tests with React Testing Library
  • Component Tests with Enzyme
    • Shallow
    • Full
    • Snapshot
  • Testing Redux Actions & Thunks, Reducers, HTTP
Optional Topics/FAQ (if time permits)
  • Performance
    • What causes a component to render?
    • Wasted Renders
    • Memoization
    • React.memo
    • Pure Components
Conclusion

Training Materials

All attendees receive comprehensive courseware.

Software Requirements

  • Google Chrome and/or Firefox
  • Other modern browsers as desired
  • IDE/development environment of your choice
  • Other free software and lab files that Accelebrate would specify, including Node.js


Accelebrate is exteremely thorough and professional, and it was a pleasure working with them. Our instructor was expertly knowledgeable, a great speaker, and consistently engaged the class. Highly recommend!

 Rob K. - Hunter Engineering, Bridgeton, MO

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan