Learning Redux

Build consistent web apps with Redux by easily centralizing the state of your application.

Learning Redux

Daniel Bugl

Build consistent web apps with Redux by easily centralizing the state of your application.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786462398
Paperback374 pages

Book Description

The book starts with a short introduction to the principles and the ecosystem of Redux, then moves on to show how to implement the basic elements of Redux and put them together. Afterward, you are going to learn how to integrate Redux with other frameworks, such as React and Angular.

Along the way, you are going to develop a blog application. To practice developing growing applications with Redux, we are going to start from nothing and keep adding features to our application throughout the book. You are going to learn how to integrate and use Redux DevTools to debug applications, and access external APIs with Redux. You are also going to get acquainted with writing tests for all elements of a Redux application. Furthermore, we are going to cover important concepts in web development, such as routing, user authentication, and communication with a backend server

After explaining how to use Redux and how powerful its ecosystem can be, the book teaches you how to make your own abstractions on top of Redux, such as higher-order reducers and middleware.

By the end of the book, you are going to be able to develop and maintain Redux applications with ease. In addition to learning about Redux, you are going be familiar with its ecosystem, and learn a lot about JavaScript itself, including best practices and patterns.

Table of Contents

Chapter 1: Why Redux?
Defining the application state
Defining actions
Tying state and actions together
Redux' three fundamental principles
Introduction to the Redux ecosystem
Summary
Chapter 2: Implementing the Elements of Redux
The Redux cycle
Running code examples
Implementing actions and action creators
Implementing reducers
The store – combining actions and reducers
Summary
Chapter 3: Combining Redux with React
Why React?
Setting up React
First steps with React
Connecting React to Redux
Building an application with Redux and React
Summary
Chapter 4: Combining Redux with Angular
Redux with Angular 1
Redux with Angular 2+
Summary
Chapter 5: Debugging a Redux Application
Integrating Redux DevTools
Setting up hot reloading
Using Redux DevTools
Summary
Chapter 6: Interfacing with APIs
Setting up the backend
Handling asynchronous operations with Redux
Pulling data from an API into the Redux store
Sending notifications to an API via Redux
Summary
Chapter 7: User Authentication
JSON Web Tokens (JWT)
Implementing token authentication
redux-auth
Summary
Chapter 8: Testing
Setting up Jest
Using Jest
Testing Redux
Testing React components
Summary
Chapter 9: Routing
Creating a simple router
Using a routing library
Using react-router-redux
Summary
Chapter 10: Rendering on the Server
Why render on the server?
Preparing for server-side rendering
Implementing server-side rendering
Performance improvements
Summary
Chapter 11: Solving Generic Problems with Higher-Order Functions
Making functions pure
Creating higher-order functions
Solving generic problems with Redux
Implementing generic undo/redo Redux
Summary
Chapter 12: Extending the Redux Store via Middleware
What is middleware?
Using the Redux store middleware
Final tips and tricks
Summary

What You Will Learn

  • Understand why and how Redux works
  • Implement the basic elements of Redux
  • Use Redux in combination with React/Angular to develop a web application
  • Debug a Redux application
  • Interface with external APIs with Redux
  • Implement user authentication with Redux
  • Write tests for all elements of a Redux application
  • Implement simple and more advanced routing with Redux
  • Learn about server-side rendering with Redux and React
  • Create higher-order reducers for Redux
  • Extend the Redux store via middleware

Authors

Table of Contents

Chapter 1: Why Redux?
Defining the application state
Defining actions
Tying state and actions together
Redux' three fundamental principles
Introduction to the Redux ecosystem
Summary
Chapter 2: Implementing the Elements of Redux
The Redux cycle
Running code examples
Implementing actions and action creators
Implementing reducers
The store – combining actions and reducers
Summary
Chapter 3: Combining Redux with React
Why React?
Setting up React
First steps with React
Connecting React to Redux
Building an application with Redux and React
Summary
Chapter 4: Combining Redux with Angular
Redux with Angular 1
Redux with Angular 2+
Summary
Chapter 5: Debugging a Redux Application
Integrating Redux DevTools
Setting up hot reloading
Using Redux DevTools
Summary
Chapter 6: Interfacing with APIs
Setting up the backend
Handling asynchronous operations with Redux
Pulling data from an API into the Redux store
Sending notifications to an API via Redux
Summary
Chapter 7: User Authentication
JSON Web Tokens (JWT)
Implementing token authentication
redux-auth
Summary
Chapter 8: Testing
Setting up Jest
Using Jest
Testing Redux
Testing React components
Summary
Chapter 9: Routing
Creating a simple router
Using a routing library
Using react-router-redux
Summary
Chapter 10: Rendering on the Server
Why render on the server?
Preparing for server-side rendering
Implementing server-side rendering
Performance improvements
Summary
Chapter 11: Solving Generic Problems with Higher-Order Functions
Making functions pure
Creating higher-order functions
Solving generic problems with Redux
Implementing generic undo/redo Redux
Summary
Chapter 12: Extending the Redux Store via Middleware
What is middleware?
Using the Redux store middleware
Final tips and tricks
Summary

Book Details

ISBN 139781786462398
Paperback374 pages
Read More

Read More Reviews

Recommended for You

Learning Redux [Video] Book Cover
Learning Redux [Video]
$ 124.99
$ 106.25
Learning React Application Development with Redux and Node.JS [Video] Book Cover
Learning React Application Development with Redux and Node.JS [Video]
$ 124.99
$ 106.25
 Architecting Angular Applications - Flux, Redux & ngrx Book Cover
Architecting Angular Applications - Flux, Redux & ngrx
$ 35.99
$ 25.20
Redux – End to End [Video] Book Cover
Redux – End to End [Video]
$ 124.99
$ 106.25
Universal JavaScript with React, Node, and Redux [Video] Book Cover
Universal JavaScript with React, Node, and Redux [Video]
$ 124.99
$ 106.25
Deep Learning: Practical Neural Networks with Java Book Cover
Deep Learning: Practical Neural Networks with Java
$ 67.99
$ 47.60