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

Accelebrate’s Introduction to React and Next.js training course teaches attendees how to leverage Next.js, a powerful React framework. Participants learn how to set up a development environment, create a Next.js project, and understand React component fundamentals, including React hooks and custom hooks. Students gain practical experience implementing routes with App Router, fetching data, and understanding isomorphic rendering. The course also covers advanced topics like Next.js caching, styling techniques, and unit testing for React components. Finally, attendees learn how to deploy Next.js apps, ensuring a well-rounded understanding of both the development and deployment processes in the Next.js ecosystem.

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 why Next.js is a React framework
  • Configure a development environment for Next.js
  • Create a Next.js project
  • Understand React component fundamentals
  • Use React hooks and custom hooks
  • Implement routes with app router
  • Fetch data with Next.js
  • Work with isomorphic rendering
  • Explore Next.js caching
  • Apply styling to Next.js apps
  • Employ unit testing to test React components
  • Deploy Next.js apps

Prerequisites

All attendees must have experience with modern JavaScript or TypeScript, including new language features like classes, modules, arrow functions, and destructuring.

Outline

Expand All | Collapse All

Introduction
React and Next.js Overview
  • Why React and Next.js?
  • What Problem Does React solve?
  • What Problem Does Next.js solve?
Development Environment
  • Install Node.js
  • Configure Visual Studio code
  • Install React Developer Tools
  • Next.js CLI
Next.js Project Setup
  • Create a new project
  • Folder Structure
  • Browser Support
  • Styles and Assets
  • Dependencies
React Components
  • Creating an Element
  • Create a Function Component
  • Rendering a Component
  • Composing & Reuse
React Component Rendering and JSX
  • What problem does JSX solve?
  • Embedding Expressions
  • Specifying Attributes
  • Using Fragments
  • Virtual DOM and Fiber Nodes
  • Ternary Operator (?)
  • Logical (&& and ||) Operators
  • Rendering a list of data
  • Optimizing rendering with keys
React Component Props
  • Immutable Props
  • String Literals vs. Expressions
  • Prop Types
  • Default Prop Values
  • Naming Patterns for Props
React Component Events
  • What are Events?
  • Common Events in React: Click and Change
  • Event Handlers and Functional Component
  • Passing Event Handlers via Props
React Component Hooks
  • What is Component State?
  • State Hook
  • Effect Hook
  • Callback Hook
  • Custom Hooks
Capture Data with Forms
  • Controlled and Uncontrolled Components
  • Enable Change Logic across Multiple Form Controls
  • Wiring up Input, Text Area, and Select
  • Handling Different Types of Input
React Component Architecture
  • Reusable Components
  • Component Communication
  • Design Patterns
  • Container and Presentation Components
  • Defining Prop Drilling
App Router
  • Define Routes
  • Pages and Layouts
  • Linking and Navigating
  • Dynamic Routes
  • Error Handling
Fetching Data
  • Server-Side Data Fetching
  • Client-Side Data Fetching
  • Data Fetching Patterns
  • Connecting Forms to Data Fetching
  • Server-Only Forms
  • Form Validation
  • Updating Cookies
Isomorphic Rendering
  • Server Rendering
  • Client Rendering
  • Server and Client Composition Patterns
Caching
Styling
  • CSS Modules
  • Tailwind CSS
  • CSS-in-JS (Styled Components)
  • Sass
  • Slice and Dice a Graphic Design File
  • Responsive Design
Unit Testing Overview
  • Jest and Testing Library
  • What are React components tested for?
  • Tests, Test Suites, Assertions, and Mocking
  • Test DOM rendering
  • Test Event Handlers with Spies
  • Test Custom Hooks
  • Mocking Components
  • Mocking Hooks
Deployment
Conclusion

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 and permission to install Node.js and Visual Studio Code on their computers. Also, students will need permission to install NPM Packages and Visual Studio Extensions. If students are unable to configure a local environment, a cloud-based environment can be provided.



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