Introduction to React using JavaScript/ECMAScript

316 Ratings

Course Number: RCT-100
Duration: 3 days (19.5 hours)
Format: Live, hands-on

React Training Overview

React is a JavaScript library for building web user interfaces. It is one of the most wanted and loved web frameworks today. React makes it painless to create interactive UIs on top of web standards. This Introduction to React using JavaScript/ECMAScript training course teaches developers the skills they need to immediately use React to build modern applications. 

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

Please see this course overview video including a demo of the hands-on coding students do in class to reinforce the concepts.

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

  • Use a JavaScript package manager (either npm or Yarn)
  • Understand the new JavaScript language features, including classes, modules, and arrow functions
  • Articulate what React is and why it is useful
  • Explore the basic architecture of a React application
  • Gain a deep understanding of JSX and the Virtual DOM
  • Use React components to build interactive interfaces
  • Create and validate forms using controlled components
  • Make HTTP calls to read or change data
  • Explore the common component architecture patterns
  • Configure simple and complex routing
  • Incorporate React best practices

Prerequisites

Students must have object-oriented programming experience. Some experience with JavaScript is helpful; the new language features of JavaScript and TypeScript are covered/reviewed in class.

Outline

Expand All | Collapse All

Introduction
Package Manager (npm/Yarn)
  • npm
    • What is Node.js?
    • What is npm?
    • Using npm
    • npm Scripts
  • Yarn
    • Why Yarn?
    • npm vs. Yarn
    • Installation
    • Using Yarn
Compiler Setup
  • Setup (Babel)
ES6/ES2015
  • Classes
  • Scope (var, let, const)
  • Arrow Functions
  • Modules
  • Template Literals
  • Default, Rest, Spread
  • Default
  • Rest
  • Spread
  • Destructuring
  • Optional Parameters
  • Object.assign()
  • Object Initializer
Project Setup (Create React App)
  • Create new Project
  • Folder Structure
  • Browser Support
  • Styles and Assets
  • Dependencies
Best Practices (Code Organization & Conventions)
React Overview
  • Why React?
  • What it is?
  • Why it is useful?
  • Angular, React Compared
  • Web application architectures
    • Server-side web application architecture
    • Single-page web application architecture
  • React Architecture
Elements
  • Hello World in JavaScript
  • Hello World in React
JSX
  • Replacing createElement
  • Embedding Expressions
  • Specifying Attributes
Virtual DOM
Components
  • Creating an Element
  • Create a Function Component
  • Rendering a Component
  • Creating a Class Component
  • Composing & Reuse
Props
  • Read-only
  • String Literals vs. Expressions
  • Function vs. Class Components
Events
  • Listening/Subscribing/Wiring to an Event
  • In Vanilla JavaScript
  • In React: Function Component
  • In React: Class Component
  • Binding
    • Why Binding is Necessary?
    • Class Method
    • Arrow Function
  • Passing Parameters
    • Using Arrow Functions
    • Using Bind
  • Handling Events
    • Using Arrow Functions
    • Using Bind
    • Synthetic Events
Hooks
  • Definition
  • Why Hooks?
  • No Breaking Changes
  • Hooks API: useState, useEffect, useRef, useContext
  • Rules of Hooks
State
  • Definition
  • State in Function Components
  • useState Hook
  • State in Class Components
  • Mutating state with setState
  • Using State Correctly
  • Data Flows Down
Side Effects & Lifecycle
  • useEffect Hook
  • What does useEffect do?
  • Using useEffect
  • useEffect Demo
  • What are Lifecycle Methods
  • Understanding Mounting
  • Common vs. Less Common Methods
  • Using Lifecycle Methods
Conditional Rendering
  • If, else
  • Conditional Operator (?)
  • Logical (&&) Operator
Lists
  • In Vanilla JavaScript: for loop, array.forEach, array.map
  • In React: using Elements, Components
  • Why Keys are Needed
Component Architecture
  • Reuse
  • Component Communication
  • Design Patterns
    • Container and Presentation Components
    • Composition vs. Inheritance
Forms
  • Controlled Components
  • Reuse of Change Logic across Multiple Inputs
  • Handling Form Submission
  • Controlling Other Form Elements: select, textarea, number
  • Validation
  • Uncontrolled Components
HTTP
  • Axios library
  • Fetch API
  • Using with React (HTTP GET)
  • Refactoring for Reuse
  • HTTP POST, PUT, DELETE
Routing (React Router)
  • Installation
  • Basics
  • Handling Not Found (404) (as time permits)
  • Parameters (Url & Query) (as time permits)
  • Nesting (as time permits)
Build & Deploy (as time permits)
  • Building a React Application for Production
  • Deploying a React Application
  • Serving Apps with Client-Side Routing
  • Customizing Environment Variables

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


Here's a sample React lesson demonstrating how to use a custom hook to collect form data with React. You can also download the code and demos shown in the video. 

See other React topics in our video series, 5-minute React Tips.

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