How to use useReducer in React Hooks for performance optimization

React Hooks API is officially released in React 16.8.In this post, we focus especially on useReducer by introducing various use cases. Before continuing reading this tutorial, please read the official document if you haven’t. This tutorial assumes readers already have a basic understanding of hooks.


This is a companion discussion topic for the original entry at https://blog.crowdbotics.com/how-to-use-usereducer-in-react-hooks-for-performance-optimization/