Introduction to React using TypeScript

RCT-116 (3 Days)
4.6 out of 5 (12 reviews)  

Request Pricing

React and TypeScript Training Overview

React is a JavaScript library for building web user interfaces and is one of the most wanted and loved web frameworks today. React makes it painless to create interactive UIs on top of web standards.

In this Introduction to React using TypeScript training course, students will gain hands-on experience with the latest version of React and the tools for developing React applications. Developers learn the skills they need to immediately build React applications using the TypeScript language.

Note: This React class can also be taught using JavaScript/ECMAScript.

Location and Pricing

Most Accelebrate courses are taught as private, customized training for 3 or more attendees at our clients' sites worldwide. In addition, we offer live, private online classes for teams who may be in multiple locations or wish to save on travel costs. Please visit our client list for organizations for whom we have delivered onsite training. To receive a customized proposal and price quote for private on-site or online training, please contact us.

In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.

React and TypeScript Training Objectives

All students will learn how to:

  • Use a JavaScript package manager (either npm or Yarn)
  • Quickly 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
  • Configure simple and complex routing
  • Implement React best practices

React and TypeScript Training Outline

Expand All | Collapse All | Printer-Friendly

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 TypeScript Compiler (tsc)
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
TypeScript
  • Understanding TypeScript, ES6, and ES5
  • How TypeScript Works
  • Who is Behind TypeScript?
  • Type Annotations
  • Classes
    • Fields
    • Parameter Properties
    • Member visibility (public, private, protected)
  • Automatically Import Modules
  • Nullable Parameters
  • Interfaces
  • Generics (as time permits)
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
State
  • Defining
  • Using State Correctly
  • Data Flows Down
  • Converting a Function Component to a Class Component
Lifecycle
  • 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)
Hooks
  • Defined
  • Why Hooks?
  • No Breaking API Changes
  • Hooks API
  • useState
  • useEffect
  • Custom Hooks
  • Rules of Hooks
Build & Deploy (as time permits)
  • Building a React Application for Production
  • Deploying a React Application
  • Serving Apps with Client-Side Routing
  • Customizing Environment Variables
Conclusion

Here's a sample lesson demonstrating how to improve React pure component performance. You can also download the code and demos shown in the video.

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

Request Pricing

Lecture percentage

50%

Lecture/Demo

Lab percentage

50%

Lab

Course Number:

RCT-116

Duration:

3 Days

Prerequisites:

All attendees must be experienced JavaScript developers with a fairly advanced understanding of JavaScript, including prototypes and functions as first-class citizens.  If your group doesn’t yet have this experience, we could readily add one or two days to the beginning of your course to appropriately prepare them.

Training Materials:

All React training attendees receive comprehensive courseware.

Software Requirements:

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

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Baton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.