React and Redux Architecture and Best Practices


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

React and Redux Training Overview

This React and Redux Architecture and Best Practices training course teaches developers advanced skills for architecting React applications, implementing best practices, and boosting performance.

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

  • Explore the common component architecture patterns
  • Learn to write custom hooks to reuse stateful logic in components
  • Explore when and how to use Context in a React application
  • Understand state management, including use cases and various alternatives
  • Utilize Redux to manage the state of the application
  • Use React and Redux together
  • Learn React and Redux best practices
  • Optimize React performance and avoid wasted renders

Prerequisites

Students should have taken Accelebrate's Introduction to React course or have equivalent experience. Attendees must have experience with Modern JavaScript concepts, including arrow functions, modules, and destructuring. 

Outline

Expand All | Collapse All

Introduction
Component Architecture
  • Reuse
  • Component Communication
  • Design Patterns
    • Container and Presentation Components
    • Composition vs. Inheritance
Hooks
  • Background
  • Hooks APIs: useState, useEffect, useRef, useContext, useReducer
  • Rules of Hooks
Custom Hooks
  • Background
  • Definition
  • Reuse of stateful logic
Context
  • When to use Context
  • useContext Hook
State Management
  • What is State?
  • When do you need a State Management Library?
  • Types of State
  • Using Context for Shared State
  • Server State Libraries: 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
  • 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)
Performance
  • What causes a component to render?
  • Wasted Renders
  • Memoization
  • React.memo
  • Pure Components
Render Props
  • Understanding the render props pattern
Conclusion

Training Materials

All React and Redux training 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 as specified, including Node.js


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