Video description
Dive in and learn React from scratch! Learn Reactjs, Redux, React Routing, Animations, Next.js basics and way more!
About This Video
What's in the course?
- The "What", "Why" and "How"
- React basics (Base features, syntax and concepts)
- How to output lists and conditional content
- Styling of React components
- A deep dive into the internals of React and advanced component features
- How to access Http content from within React apps (AJAX)
- Redux, Redux, Redux ... from basics to advanced!
- Forms and form validation in React apps
- Authentication
- An introduction to unit testing
- An introduction to Next.js
- React app deployment instructions
In Detail
Learn React or dive deeper into it. Learn the theory, solve assignments, practice on demo projects and build one big application which is improved throughout the course: The Burger Builder! JavaScript is the major driver of modern web applications since it's the only programming language which runs in the browser and hence allows you to provide highly reactive apps. You'll be able to achieve mobile-app like user experiences in the web. But using JavaScript can be challenging - it quickly becomes overwhelming to create a nice web app with vanilla JavaScript and jQuery only. React to the rescue! React is all about components - basically custom HTML elements - with which you can quickly build amazing and powerful web apps. Just build a component once, configure it to your needs, dynamically pass data into it (or listen to your own events!) and re-use it as often as needed. Need to display a list of users in your app? It's as simple as creating a "User" component and outputting it as often as needed. By the end of the course, you will be able to build amazing React (single page) applications! A short refresher about the most important next-gen features is provided in the course.
Who this book is for
Students who want to learn how to build reactive and fast web apps. Anyone who's interested in learning an extremely popular technology used by leading tech companies like Netflix. Students who want to take their web development skills to the next level and learn a future-proof technology
Table of contents
- Chapter 1 : Getting Started
- Chapter 2 : Refreshing Next Generation JavaScript
-
Chapter 3 : Understanding the Base Features Syntax
- Module Introduction
- The Build Workflow
- Using Create React App
- Understanding the Folder Structure
- Understanding Component Basics
- Understanding JSX
- JSX Restrictions
- Creating a Functional Component
- Working with Components Re-Using Them
- Outputting Dynamic Content
- Working with Props
- Understanding the Children Property
- Understanding Using State
- Handling Events with Methods
- Manipulating the State
- Using the useState() Hook for State Manipulation
- Stateless vs Stateful Components
- Passing Method References between Components
- Adding Two Way Binding
- Adding Styling with Stylesheets
- Working with Inline Styles
- Assignment 1: Time to Practice - The Base Syntax
- [OPTIONAL] Base Syntax Assignment Solution
-
Chapter 4 : Working with Lists and Conditionals
- Module Introduction
- Rendering Content Conditionally
- Handling Dynamic Content "The JavaScript Way"
- Outputting Lists (Intro)
- Outputting Lists
- Lists State
- Updating State Immutably
- Lists Keys
- Flexible Lists
- Wrap Up
- Assignment 2: Time to Practice - Lists and Conditions
- [OPTIONAL] Lists and Conditions Assignment Solution
- Chapter 5 : Styling React Components Elements
- Chapter 6 : Debugging React Apps
-
Chapter 7 : Diving Deeper into Components React Internals
- Module Introduction
- A Better Project Structure
- Splitting an App into Components
- Comparing Stateless and Stateful Components
- Class-based vs Functional Components
- class Component Lifecycle Overview
- Component Creation Lifecycle in Action
- Component Updating Lifecycle (for props Changes)
- Component Updating Lifecycle (for state Changes)
- Using useEffect() in Functional Components
- Controlling the useEffect() Behavior
- Cleaning up with Lifecycle Hooks useEffect()
- Cleanup Work with useEffect() - Ex
- Using shouldComponentUpdate for Optimization
- Optimizing Functional Components with React.memo()
- When should you optimize?
- PureComponents instead of shouldComponentUpdate
- How React Updates the DOM
- Rendering Adjacent JSX Elements
- Using React.Fragment
- Higher Order Components (HOC) - Introduction
- Another Form of HOCs
- Passing Unknown Props
- Setting State Correctly
- Using PropTypes
- Using Refs
- Refs with React Hooks
- Understanding Prop Chain Problems
- Using the Context API
- contextType useContext()
- Wrap Up
-
Chapter 8 : A Real App: The Burger Builder (Basic Version)
- Module Introduction
- Planning an App in React - Core Steps
- Planning our App - Layout and Component Tree
- Planning the State
- Setting up the Project
- Creating a Layout Component
- Starting Implementation of the Burger Builder Container
- Adding a Dynamic Ingredient Component
- Adding Prop Type Validation
- Starting the Burger Component
- Outputting Burger Ingredients Dynamically
- Calculating the Ingredient Sum Dynamically
- Adding the Build Control Component
- Outputting Multiple Build Controls
- Connecting State to Build Controls
- Removing Ingredients Safely
- Displaying and Updating the Burger Price
- Adding the Order Button
- Creating the Order Summary Modal
- Showing Hiding the Modal (with Animation!)
- Implementing the Backdrop Component
- Adding a Custom Button Component
- Implementing the Button Component
- Adding the Price to the Order Summary
- Adding a Toolbar
- Using a Logo in our Application
- Adding Reusable Navigation Items
- Creating a Responsive Sidedrawer
- Working on Responsive Adjustments
- More about Responsive Adjustments
- Reusing the Backdrop
- Adding a Sidedrawer Toggle Button
- Adding a Hamburger Icon
- Improving the App: Introduction
- Prop Type Validation
- Improving Performance
- Using Component Lifecycle Methods
- Changing the Folder Structure
- Wrap Up
-
Chapter 9 : Reaching out to the Web (Http / Ajax)
- Module Introduction
- Understanding Http Requests in React
- Understanding our Project and Introducing Axios
- Creating Http Request to GET Data
- Rendering Fetched Data to the Screen
- Transforming Data
- Making a Post Selectable
- Fetching Data on Update (without Creating Infinite Loops)
- POSTing Data to the Server
- Sending a DELETE Request
- Fixing a Bug
- Handling Errors Locally
- Adding Interceptors to Execute Code Globally
- Setting a Default Global Configuration for Axios
- Creating and Using Axios Instances
- Wrap Up
- Chapter 10 : Burger Builder Project: Accessing a Server
-
Chapter 11 : Multi-Page-Feeling in a Single-Page-App: Routing
- Module Introduction
- Routing and SPAs
- Setting up Links
- Setting Up the Router Package
- Preparing the Project for Routing
- Setting Up and Rendering Routes
- Rendering Components for Routes
- Switching Between Pages
- Using Links to Switch Pages
- Using Routing-Related Props
- The "withRouter" HOC Route Props
- Absolute vs Relative Paths
- Styling the Active Route
- Passing Route Parameters
- Extracting Route Parameters
- Using Switch to Load a Single Route
- Navigating Programmatically
- Additional Information Regarding Active Links
- Understanding Nested Routes
- Creating Dynamic Nested Routes
- Redirecting Requests
- Conditional Redirects
- Using the History Prop to Redirect (Replace)
- Working with Guards
- Handling the 404 Case (Unknown Routes)
- Loading Routes Lazily
- Lazy Loading with React Suspense (16.6)
- Routing and Server Deployment
- Assignment 3: Time to Practice - Routing
- [OPTIONAL] Routing Assignment Solution
- Wrap Up
-
Chapter 12 : Adding Routing to our Burger Project
- Module Introduction
- Building the Checkout Container
- Setting Up Routing Routes
- Navigating to the Checkout Page
- Navigating Back To Next Page
- Passing Ingredients via Query Params
- Navigating to the Contact Data Component
- Order Submission Passing Data between Pages
- Adding an Orders Page
- Implementing Navigation Links
- Fetching Orders
- Outputting the Orders
- Wrap Up
-
Chapter 13 : Forms and Form Validation
- Module Introduction
- Analyzing the App
- Creating a Custom Dynamic Input Component
- Setting Up a JS Config for the Form
- Dynamically Create Inputs based on JS Config
- Adding a Dropdown Component
- Handling User Input
- Handling Form Submission
- Adding Custom Form Validation
- Fixing a Common Validation Gotcha
- Adding Validation Feedback
- Improving Visual Feedback
- Handling Overall Form Validity
- Wrap Up
- Fixing a Bug
-
Chapter 14 : Redux
- Module Introduction
- Understanding State
- The Complexity of Managing State
- Understanding the Redux Flow
- Setting Up Reducer and Store
- Dispatching Actions
- Adding Subscriptions
- Connecting React to Redux
- Connecting the Store to React
- Dispatching Actions from within the Component
- Assignment 4: Time to Practice – Dispatching actions
- [OPTIONAL] Dispatching Actions Assignment Solution
- Passing and Retrieving Data with Action
- Switch-Case in the Reducer
- Updating State Immutably
- Updating Arrays Immutably
- Outsourcing Action Types
- Combining Multiple Reducers
- Understanding State Types
- Assignment 5: Time to Practice – Redux Basics
- [OPTIONAL] Redux basics Assignment Solution
- Combining Local UI State and Redux
- Wrap Up
- Chapter 15 : Adding Redux to our Project
-
Chapter 16 : Redux Advanced
- Module Introduction
- Adding Middleware
- Using the Redux Devtools
- Executing Asynchronous Code: Introduction
- Introducing Action Creators
- Action Creators Async Code
- Handling Asynchronous Code
- Restructuring Actions
- Where to Put Data Transforming Logic?
- Using Action Creators and Get State
- Using Utility Functions
- A Leaner Switch Case Statement
- An Alternative Folder Structure
- Diving Much Deeper
- Wrap Up
-
Chapter 17 : Redux Advanced: Burger Project
- Module Introduction
- Installing the Redux Devtools
- Preparing the Folder Structure
- Creating Action Creators
- Executing Asynchronous Code
- Fetching Ingredients Asynchronously
- Initializing Ingredients in the BurgerBuilder
- Changing the Order of our Ingredients Manually
- Adding Order Actions
- Connecting Contact Data Container Actions
- The Order Reducer
- Working on Order Actions
- Redirect to Improve UX
- Combining Reducers
- Handling Purchases Updating the UI
- Resetting the Price after Purchases
- Fetching Orders (via Redux)
- Checking our Implemented Functionalities
- Refactoring Reducers
- Refactoring Reducers Continued
- Wrap Up
-
Chapter 18 : Adding Authentication to our Burger Project
- Module Introduction
- Understanding Authentication in Single Page Applications
- Required App Adjustments
- Adding an Auth Form
- Adding Actions
- Getting a Token from the Backend
- Adding Sign-In
- Storing the Token
- Adding a Spinner
- Logging Users Out
- Accessing Protected Resources
- Updating the UI Depending on Auth State
- Adding a Logout Link
- Forwarding Unauthenticated Users
- Redirecting the User to the Checkout Page
- Persistent Auth State with localStorage
- Fixing Connect + Routing Errors
- Ensuring App Security
- Guarding Routes
- Displaying User Specific Orders
- Wrap Up
- Chapter 19 : Improving our Burger Project
- Chapter 20 : Testing
- Chapter 21 : Deploying the App to the Web
-
Chapter 22 : Bonus: Working with Webpack
- Module Introduction
- Introducing Webpack
- How Webpack works
- Basic Workflow Requirements
- Project npm Setup
- Creating a Basic Folder File Structure
- Creating the Basic React Application
- Installing Production Dependencies
- Setting Up the Basic Webpack Config
- Adding File Rules Babel
- Loading CSS Files
- Loading Images Injecting into HTML Page
- Production Workflow Wrap Up
- Chapter 23 : Bonus: Next.js
-
Chapter 24 : Bonus: Animations in React Apps
- Module Introduction
- Preparing the Demo Project
- Using CSS Transitions
- Using CSS Animations
- CSS Transition Animations Limitations
- Using ReactTransitionGroup
- Using the Transition Component
- Wrapping the Transition Component
- Animation Timings
- Transition Events
- The CSSTransition Component
- Customizing CSS Classnames
- Animating Lists
- Alternative Animation Packages
- Wrap Up
-
Chapter 25 : Bonus: A Brief Introduction to Redux Saga
- Module Introduction
- Installing Redux Saga
- Creating our First Saga
- Hooking the Saga Up (to the Store and Actions)
- Moving Logic from the Action Creator to a Saga
- Moving More Logic Into Sagas
- Handling Authentication with a Saga
- Handling Auto-Sign-In with a Saga
- Moving the BurgerBuilder Side Effects into a Saga
- Moving the Orders Side Effects into Sagas
- Why Sagas can be Helpful
- Diving Deeper into Sagas
-
Chapter 26 : React Hooks
- Introduction
- What are "React Hooks"?
- The Starting Project
- Getting Started with useState()
- More on useState() State Updating
- Array Destructuring
- Multiple States
- Rules of Hooks
- Passing State Data Across Components
- Assignment 6: Time to Practice – Hooks Basics
- [OPTIONAL] Hook Assignment Solution
- Sending Http Requests
- useEffect() Loading Data
- Understanding useEffect() Dependencies
- More on useEffect()
- What's useCallback()?
- Working with Refs useRef()
- Cleaning Up with useEffect()
- Deleting Ingredients
- Loading Errors State Batching
- Understanding useReducer()
- Using useReducer() for the Http State
- Working with useContext()
- Performance Optimizations with useMemo()
- Getting Started with Custom Hooks
- Sharing Data Between Custom Hooks Components
- Using the Custom Hook
- Wrap Up
-
Chapter 27 : Using Hooks in the Burger Builder
- Introduction
-
Converting
- Routing with React.lazy()
- Converting the Layout Component
- Converting withErrorHandler HOC
- Adjusting the Order Checkout Containers
- Add Hooks to ContactData
- Converting the BurgerBuilder Container
- Adjusting Auth Logout Components
- Using React.memo() More!
- Adding a Custom Error Handling Hook
- Setting the right useEffect() Dependencies
- Working with useSelector() and useDispatch()
- Wrap Up
-
Chapter 28 : Bonus: Replacing Redux with React Hooks
- Module Introduction
- Starting Project Why You Would Replace Redux
- Alternative: Using the Context API
- Toggling Favorites with the Context API
- Context API Summary (and why NOT to use it instead of Redux)
- Getting Started with a Custom Hook as a Store
- Finishing the Store Hook
- Creating a Concrete Store
- Using the Custom Store
- Custom Hook Store Summary
- Optimizing the Custom Hook Store
- Wrap Up
- Chapter 29 : Bonus: Building the Burger CSS
- Chapter 30 : Next Steps and Course Roundup
Product information
- Title: React - The Complete Guide (incl. Hooks, React Router and Redux)
- Author(s):
- Release date: May 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789132229
You might also like
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for React 18** Starting with an introduction to React concepts, you …
video
Vue - The Complete Guide (Including Vue Router, Vuex, and Composition API)
Vue.js is a highly popular framework that provides a reactive and great user experience not only …
video
Complete Git Guide: Understand and Master Git and GitHub
Complete with practical activities, this comprehensive Git and GitHub guide will help you understand how Git …
video
Angular - The Complete Guide [2024 Edition]
This Angular course, built specifically for web development professionals looking to harness the full potential of …