Book Image

Redux Quick Start Guide

By : James Lee, Tao Wei, Suresh Kumar Mukhiya
Book Image

Redux Quick Start Guide

By: James Lee, Tao Wei, Suresh Kumar Mukhiya

Overview of this book

Starting with a detailed overview of Redux, we will follow the test-driven development (TDD) approach to develop single-page applications. We will set up JEST for testing and use JEST to test React, Redux, Redux-Sage, Reducers, and other components. We will then add important middleware and set up immutableJS in our application. We will use common data structures such as Map, List, Set, and OrderedList from the immutableJS framework. We will then add user interfaces using ReactJS, Redux-Form, and Ant Design. We will explore the use of react-router-dom and its functions. We will create a list of routes that we will need in order to create our application, and explore routing on the server site and create the required routes for our application. We will then debug our application and integrate Redux Dev tools. We will then set up our API server and create the API required for our application. We will dive into a modern approach to structuring our server site components in terms of Model, Controller, Helper functions, and utilities functions. We will explore the use of NodeJS with Express to build the REST API components. Finally, we will venture into the possibilities of extending the application for further research, including deployment and optimization.
Table of Contents (16 chapters)
Title Page
Copyright and Credits
Dedication
About Packt
Contributors
Preface
Index

New in React 16.8


The following lists the new things that were introduced in React 16.8:

  1. The major changes made to the reconciliation internals, and what they mean for React projects, going forward
  2. It allows confining errors to be confined to the sections of your application by setting error boundaries
  3. It provides creating components that render more than one element, and components that render strings
  4. It allows rendering to portals

New features with React 16.8

React 16.8 introduces users to the concept of hooks. Hooks allow the consumption of state and other React features without writing a class. Not only that, but it allows developers to build their own hooks and share reusable logic between components. 

Note

Please note that these hooks are only available in React 16.8. Our project is built with 16.6.0. So, if you want to use hooks, consider upgrading to 16.8. By now, you know how to create a new project. You can read more about using the hooks at https://reactjs.org/blog/2019/02/06/react-v16...