Best of React HooksMarch 2023

  1. 1
    Article
    Avatar of medium_jsMedium·3y

    Mastering React useEffect Hook: A Comprehensive Guide

    A comprehensive guide to mastering the React useEffect hook, which allows developers to handle side effects, manage component life cycles, and execute code only when specific changes occur. Covers basic syntax, running effects conditionally, cleaning up effects, using multiple effects, and common use cases such as updating the document title, fetching data from an API, subscribing and unsubscribing to events, and animating components.

  2. 2
    Article
    Avatar of css_tricksCSS-Tricks·3y

    5 Mistakes I Made When Starting My First React Project | CSS-Tricks

    Using create-react-app to start a project TL;DR. Use Vite or Parcel to set up a new React project. Create React App(CRA) creates a development environment with the best configuration options. Babel is a tool that allows you to use newer JavaScript features, even if some browsers don't support them.

  3. 3
    Article
    Avatar of tilThis is Learning·3y

    React Query - useIsFetching & useIsMutation

    React Query provides two hooks, useIsFetching and useIsMutation, which can be used to understand if there are fetching or mutation requests ongoing in the application. These hooks are useful for creating a global loader. Learn how to use them and find more information in the post.