Praveen Kumar
ArticlesProjectsAboutRésuméLearn
← articles

series

hooks unleashed

4 parts, in order.
  1. Part 1

    Custom React hooks: a three-part series

    Three small hooks I wrote in 2023: localStorage persistence, mouse coordinates, and online/offline status. Code-first, no fluff.

  2. Part 2

    useLocalStorage: persist React state in localStorage

    A small custom hook that reads and writes JSON to localStorage, with lazy initialization on first render.

  3. Part 3

    useMouseCoords: track cursor position

    A custom hook that subscribes to mousemove and returns the latest clientX and clientY.

  4. Part 4

    useNetworkStatus: react to online/offline

    A custom hook that listens to window online/offline events and returns a boolean.

Praveen Kumar

I build frontend platforms and write about how they work.

  • Articles
  • Projects
  • About
  • Résumé
  • Learn
  • GitHub
  • Twitter
  • LinkedIn

© 2026 Praveen Kumar, CC-BY-SA