Introduction to React and Next.js


Course Number: RCT-128
Duration: 5 days (32.5 hours)
Format: Live, hands-on

React and Next.js Training Overview

React is the leading framework for building web user interfaces. Next.js is a powerful framework for server-side rendering (SSR) of React applications. Accelebrate’s Introduction to React and Next.JS training teaches experienced JavaScript performers who to use these two frameworks together to build highly performant web applications.

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, we offer some courses as live, instructor-led online classes for individuals.

Objectives

  • Apply the principles and best practices of React
  • Leverage aspects of the React API used in Next.js programming
  • Style components with Styled JSX
  • Implement routing with Next.js
  • Render react on the Server
  • Work with data using SWR

Prerequisites

All attendees must be experienced JavaScript developers. Knowledge of modern JavaScript concepts such as classes, destructuring, rest/spread operators, Promises, etc., is very helpful. If your team needs to get up to speed with JavaScript, we would be delighted to provide a 1-day primer course on the JavaScript language.

Outline

Expand All | Collapse All

Introduction
  • Modern Web Development Tooling
  • Languages of the Web: HTML, CSS, JavaScript
  • Statically & Strongly Typed JavaScript - TypeScript
  • Role of Data
  • What is React?
  • What problem does React solve?
  • What is Next.js?
  • What problem does Next.js solve?
Getting Started with React 
  • Three Elements of React Programming
  • Declarative Programming
  • Component-based
  • Learn Once, Write Anywhere
React + Next.js Projects 
  • Create a React/Next.js Project
  • Create React/Next.js App Generator
  • Generated Project File Structure
  • Configuration Files
  • Webpack, Babel, etc...
  • Hot Reloading
  • Understanding JSX Syntax
Components 
  • What is a Component
  • Functional Components vs. Class-based Components
  • Rendering Components
  • Model-Driven DOM Changes
Passing Data to Components 
  • Passing Data with Props
  • Object Destructuring
  • Default Props
  • PropTypes and Static Typing of Props
  • Composing Components
  • Composition Patterns
  • Passing Functions via Props
React Hooks 
  • What are Hooks?
  • How do Hooks work?
  • Managing Hook Dependencies
  • Component State and the State Hook
  • Understand the Purpose of State
  • Updating State Properly
  • Manage Side Effects with Effect Hook
  • Running Code when a Component Loads
  • React Context and the Context Hook
  • Optimizing Rendering with the Callback and Memo Hook
  • Accessing Elements with the Ref Hook
  • Setting the Element Focus on Component Load
  • Custom Hooks
Styling React Components  
  • Style and Class Name Props
  • CSS Modules
  • CSS in JS
Next.js Pages 
  • What is a Page Component?
  • Routing and Page Components
  • Linking Between Pages
  • What is a Subcomponent?
  • Reusing Component Logic Across Pages
CSS
  • What is CSS?
  • Essentials of CSS for Programmers
    • Selectors
    • Layout
    • Formatting
  • What is a Layout Component?
  • Layout Components and CSS
    • Applying CSS
Images
  • Image Formats
    • Older: Gif, Jpg, Png
    • Newer: Svg, Webp, Avif
  • Image Component
  • Image Imports
  • Image Optimization
Font Optimization
Static File Serving
Environment Variables
Server-Side Rendering 
  • Benefits of Server-Side Rendering
  • Hosting Requirements
  • Loading Data
  • Dynamic Imports
Routing 
  • Index Route
  • Nested Routes
  • Dynamic Route Segments
  • Accessing the Router
  • Routing Imperatively
  • Shallow Routing
Lazy Loading
  • Lazy Loading Modules
  • Lazy Loading Components
Working with Data 
  • Fetching Data the Next.js way
  • Using the Fetch (or Axios) API
  • Fetching Data and Server-Side Rendering
  • Fetching Data from a REST API
  • Using the SWR Hook for Fetching Data
Authentication
  • Authentication Patterns
  • Authenticating Static Pages
  • Authenticating Server-Rendered Pages
Testing
  • Cypress
  • Integration Tests
  • Jest
  • Unit Testing
    • Snapshot Testing
    • DOM Testing
    • Hooks Testing
Automatic Static Optimization
Deploying a Production Site
  • Caching
  • Reducing JavaScript Size
  • Logging
  • Error Handling
Conclusion

Training Materials

All React and Next.js training attendees receive comprehensive courseware.

Software Requirements

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


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