React Performance Cheat Sheet

Here's a quick reference to debug and fix common react performance issues * Production mode: Make sure deployed app is a production build, NOT a development build. * Keys: make sure every component mapped from an array has a unique and stable key * Check component hierarchy or state: first try…

Using useReducer React Hook

The useReducer hook allows you to use a reducer for state management in your application. A reducer, of course, is simply a pure function that takes an action and state, and returns a copy of that state after applying the action on that state.…

Using useEffect Hook In React

The useEffect hook behaves similar to componentDidMount, componentDidUpdate, and componentWillUnmount lifecycle hooks combined. It allows you to perform any (side)effects, such as API calls, without blocking the UI render.…