Snippets

Welcome to my code snippets library. Here you'll find a curated selection of code segments that highlight my approach to efficient problem-solving and clean coding practices.

  • Custom Scroll Position Hook

    September 20, 2023

    A custom React hook to track the scroll position of the window

    react hooks scroll position
  • Dark Mode Toggle Hook

    April 08, 2024

    A custom React hook to toggle between light and dark modes.

    react hooks dark mode toggle
  • Fetch Data Hook

    March 24, 2024

    A custom React hook to fetch data from an API.

    react hooks fetch api
  • Form Validation Hook

    January 05, 2024

    A custom React hook to handle form validation.

    react hooks form validation
  • Local Storage Hook

    March 11, 2024

    A custom React hook to read from and write to local storage.

    react hooks local storage
  • Check Navbar position on scroll

    September 20, 2023

    Create a hook with useState and useEffect to check the position of the navbar on scroll

    react hooks useState useEffect scroll navbar position

Reach out to me

© Rares Sandu 2025 • Got any feedback?

HomeBlogSnippestsProjectsAbout