Training

 

 

Popular Courses

Browse Our Free Resources

  • whitepapers
  • whitepapers
  • webinars
  • blogs

Our Locations

Training Centres

Vancouver, BC
Calgary, AB
Edmonton, AB
Toronto, ON
Ottawa, ON
Montreal, QC
Hunt Valley
Columbia

locations map

Calgary

550 6th Av SW
Suite 475
Calgary, AB
T2P 0S2

Toronto

821A Bloor Street West
Toronto, ON
M6G 1M1

Vancouver

409 Granville St
Suite 902
Vancouver, BC
V6C 1T2

U.S. Office

436 York Road
Suite 1
Jenkintown, PA
19046

Other Locations

Dallas, TX
Miami, FL

Home > Training > Web 2.0 and AJAX > React Training: React JavaScript Programming

React Training: React JavaScript Programming

Course#: WA2583
Courseware: Available for sale

Web Age Solutions React class introduces the React JavaScript framework, sometimes referred to as ReactJS or React.JS.  React is a popular component-based JavaScript framework used for easy creation of powerful, interactive UIs.

This React class will provide an introduction to the benefits of the React JavaScript framework, so course participants can start to develop applications quickly using the framework.

This React class has 12 hands-on labs that are outlined at the bottom of this page. The labs allow you to practice the following skills:

[Delivery options: Web Age React course is delivered in traditional classroom style format. Online React course is also available in a synchronous instructor led format.]

Lab 1 - Setting Up the Lab Environment

In this short lab, you will set up your lab environment and learn how to start, use and stop the nginx (pronounced "engine x") web server (http://nginx.org) that we will be using in this course's labs.

Lab 2 - Getting Started with React

In this lab, you will create a simple "vanilla" JavaScript React application that is, quite appropriately, named "Hello React!" While, most commonly, the greeting should include a comma after Hello, and the whole phrase should be written as “Hello, React!”, we will purposely drop the comma to remove this unneeded for code comprehension information bit.

Lab 3 - DOM Updates in React

In this lab we will work with a React app designed to help you understand the DOM update efficiencies exercised by React. You will remember that React compares (diffs) its own cached "virtual / mock " DOM structure with the native DOM of the web page and only renders the necessary updates on the page's DOM.

Lab 4 - JSX Expressions

In this lab, you will familiarize yourself with JSX by working on a React app that uses JSX expressions. JSX is a powerful mechanism to bring in templating support to React and it is positioned as one of the stronger selling points of React.

Lab 5 - Using the On-line Babel REPL

In this lab, you will work with a React app that uses a functional (JavaScript functionbased) component with JSX-encoded elements. You will learn the steps needed to integrate your app with the rest of your web page.

Lab 6 - Using Composite Components

In this lab, you will be working with composite React components which act as re-usable building UI blocks. We will also take a look at how to pass complex parameter objects to components.

Lab 7 - Working with Lists in JSX

In this lab, you will learn how to properly use lists (arrays) in JSX-based React applications.

Lab 8 - A Class-Based React Component

In this lab, you will be working with a class-based React component that uses JSX extensions. We will be using Babel JavaScript compiler to convert JSX code into functionally equivalent React code and create a JSX-enabled React app.

Lab 9 - Using ES6 for Creating React Components

In this lab, you will learn how to create and work with React components written in ES6. You will learn how a React app can maintain its state and how changes to the state cause components to re-render themselves.

Lab 10 - Event Handlers in React

In this lab, you will learn how to attach event handlers to React UI components.

Lab 11 - Installing Babel Command-Line Interface

While the on-line Babel REPL (https://babeljs.io/repl) is a great tool for quick prototyping and learning, in practice, you will probably need to install Babel locally in your Dev environment and plug the Babel compilation step into the build process and continuous integration workflow.

Lab 12 - Using Babel Command-Line Interface

In this lab, we will work through the essential steps required to compile a JSX-enabled React app using Babel CLI, and integrate the transpiled code with a web page.

OBJECTIVES

In this React class, attendees will learn how to:

  • Understand the programming model provided by the React framework
  • Define React components
  • Use the React framework to handle events and stateful data

PREREQUISITES

Attendees should have some prior understanding of web development, HTML, AJAX, and JavaScript.

DURATION

3 Days

Outline of WA2583 React Training: React JavaScript Programming Training

Chapter 1. Advanced Objects and Functionality in JavaScript

  • Basic Objects
  • Constructor Function
  • More on the Constructor Function
  • Object Properties
  • Deleting a Property
  • The instanceof Operator
  • Object Properties
  • Constructor and Instance Objects
  • Constructor Level Properties
  • Namespace
  • Functions Are First-Class Objects
  • Closures
  • Closure Examples
  • Private Variables with Closures
  • Immediately Invoked Function Expression (IIFE)
  • The Module Pattern
  • Module Pattern Example
  • Prototype
  • Inheritance in JavaScript
  • The Prototype Chain
  • Traversing Prototype Property Hierarchy
  • Prototype Chain
  • Inheritance Using Prototype
  • Extending Inherited Behavior
  • Enhancing Constructors
  • Improving Constructor Performance
  • Inheritance with Object.create
  • The hasOwnProperty Method
  • Summary

Chapter 2. React Overview

  • What is React?
  • What's in a Name?
  • React Component Model
  • What React Is Not
  • What You Will Not Find in React
  • Motivation for Creating React
  • A React JavaScript Example
  • One-Way Data Flow
  • JSX
  • A JSX Example
  • The Virtual (Mock) DOM
  • Only Sub-components that Actually Change are Re-Rendered
  • React Libraries
  • React Installation
  • Summary

Chapter 3. Programming with React API

  • React Programming Options
  • Components vs Elements
  • Three Ways to Create a React UI Component
  • React API On-Line Documentation
  • Setting Up the Libraries
  • The ReactDOM Object
  • The ReactDOM Object (Cont'd)
  • The React Object
  • The React.createElement Method
  • The ReactElement Object
  • The ReactElement Structure
  • The React.DOM Object
  • The React.PropTypes Object
  • The React.Children Object
  • The propTypes Object
  • Lifecycle Methods (Applied only to ES6 Classes)
  • Summary

Chapter 4. JSX

  • What is JSX?
  • JSX Transpilation to React Code Example
  • Running the Transpiled Code
  • Babel
  • Babel JavaScript Library
  • Script Import Skeleton Code
  • Playing Around in CodePen
  • React Components and Properties (Props)
  • Ways to Create UI Components
  • Creating a Functional Component Example
  • Component Names Must Be Capitalized
  • Creating a UI Component with React.createClass()
  • The render Method Object
  • Creating a UI Component Using ES6 Class Notation
  • Using ES6 Classes with React
  • Which UI Component Creation Syntax Should I Use?
  • Components vs Elements
  • Elements Are Immutable
  • Properties
  • Property Naming Convention
  • Properties Default to 'True'
  • Spread Attributes (an ES6 Feature)
  • Expressions
  • Hands-on Exercises
  • Nesting JSX Elements
  • Example of JSX Nesting
  • JSX is Safe to Use
  • Hands-on Exercise
  • State and Lifecycle Events
  • Event Handling
  • Event Handler Example
  • Working with Lists of Items
  • List Keys
  • Hands-on Exercises
  • Summary

Chapter 5. Introduction to Node.js

  • What Is Node.js?
  • Application of Node.js
  • Installing Node.js and NPM
  • "Hello, Node World!"
  • How It Works
  • Built on JavaScript: Benefits
  • Traditional Server-Side I/O Model
  • Disadvantages of the Traditional Approach
  • Event-Driven, Non-Blocking I/O
  • Concurrency
  • Using Node Package Manager (NPM)
  • Express
  • Summary

Chapter 6. Babel Command-Line Interface

  • Babel Transpiler
  • Usage Options
  • Presets and Plug-ins
  • Babel CLI Installation
  • Installing the Required Presets
  • The .babelrc Configuration File
  • Running Babel Command-Line
  • Summary

Chapter 7. ES6 in a Nutshell

  • What is ES6?
  • ES6 Features
  • Using ES6
  • Transpiling
  • Major Syntax Changes
  • let and const
  • Variable Scope
  • Shadowing Variables
  • Arrow Functions
  • Arrow Functions As Parameters
  • Using 'this' Within Arrow Functions
  • Template Literals
  • Spread Operator
  • ES6 Classes
  • Declaring Classes
  • Declaring Instance Methods
  • Accessor Methods
  • Static Methods
  • Inheritance With Classes
  • Summary

Chapter 8. Extending React

  • The Need to Extend React
  • Redux
  • Redux Design Ideas
  • React Router
  • React Router Code Examples
  • Issues With Manual Module Management
  • Webpack
  • Testing React Apps: ReactTestUtils
  • Testing React Apps: Jest
  • Testing with Jest and Enzyme
  • Summary

CHAPTER 9. REACT COMPONENT CONCEPTS

  • Development setup with babel-cli
  • Container vs. Presentational Components
  • State
  • Types of State Data
  • State Hierarchy
  • Lift State Up
  • Pass Down a Function
  • Keys in Lists
  • Props vs. State
  • Immutability
  • App Development Workflow
  • Virtual DOM
  • Calling setState()
  • Passing Props to Components
  • Passing Functions to Components
  • Event Binding in React Components
  • Passing Parameters to Event Handlers
  • Displaying Lists

PROJECT 1. REACT BOOK WEBSITE

This programming project implements an end-to-end data based application using the following technologies: React for the front end, node and express for RESTful web services and Mongo for the database layer. The project consists of a fully capable CRUD based single page React application that gets its data from a lightweight web service. In building this project students will gain practical experience in creating real-world React components that work with both data and events. JSX is used to create the React components while the babel compiler is used to convert both JSX and ES6 statements into the version of JavaScript most often supported by today's browsers. The completed project includes code for the RESTful service as well as database interfacing.
Time to complete: 1-1/2 to 2 hours

CHAPTER 10. BUILDING REACT APPS WITH REDUX

  • Create a development environment with create-react-app
  • Redux Terminology
  • Redux Principles
  • Redux: Actions
  • Redux Action Types
  • Action Creators
  • Dispatching Actions
  • Data Flow Basics
  • Redux Reducers
  • Pure Functions
  • Reducer Example
  • Returning Default State
  • Using Redux with React
  • Initializing the Store
  • Immutability
  • Benefits of Immutable State
  • Mutability of Standard types
  • Copying Objects in JavaScript
  • Copying Arrays in JavaScript
  • Multiple Reducers
  • Combining Reducers
  • Components and Redux
  • React-Redux Package
  • Wrapping App with Provider
  • MapDispatchToProps
  • MapStateToProps
  • Using Mapped Properties and Methods
  • Wrapping Components with Connect
  • Configure Store

PROJECT 2. REACT-REDUX BOOK WEBSITE

This programming project the application introduced in project 1 only with a full redux integration. Like project 1 it implements an end-to-end data based application using the following technologies: React for the front end, node and express for RESTful web services and Mongo for the database layer.
In building this project students will gain practical experience in creating real-world React applications that use Redux to handle actions and state. The completed project includes code for the RESTful service as well as database interfacing.
Time to complete: 2 to 3 hours

 

Lab Exercises

Lab 1. Setting Up the Lab Environment
Lab 2. Getting Started with React
Lab 3. DOM Updates in React
Lab 4. JSX Expressions
Lab 5. Using the On-line Babel REPL
Lab 6. Using Composite Components
Lab 7. Working with Lists in JSX
Lab 8. A Class-Based React Component
Lab 9. Using ES6 for Creating React Components
Lab 10. Event Handlers in React
Lab 11. Installing Babel Command-Line Interface
Lab 12. Using Babel Command-Line Interface

We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.
*Your name:

*Your e-mail:

*Phone:

*Company name:

Additional notes:

We have received your message. A sales representative will contact you soon.

Thank you!.

more details
buy this course
Other Details

Register for a courseware sample

It's simple, and free.

 

Thank You!

You will receive an email shortly containing a link to download the requested sample of the labs for this course.