Praveen Kumar
ArticlesProjectsAboutRésuméLearn
← tags

writing

react

June 29, 2023· hooks unleashed

useNetworkStatus: react to online/offline

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

reacthooks
June 15, 2023· hooks unleashed

useMouseCoords: track cursor position

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

reacthooks
June 7, 2023· hooks unleashed

useLocalStorage: persist React state in localStorage

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

reacthooks
June 1, 2023· hooks unleashed

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.

reacthooks
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