Code Monkey home page Code Monkey logo

hooks's Introduction

๐Ÿช hooks

codecov

This repository contains a curated selection of React hooks that I personally used for enhanced project functionality. It is regularly updated with new tools.

Available Hooks

  • useActivePointerState: Tracks the active state of a pointer interaction within a specific DOM element, toggling between active and inactive based on pointer down, pointer up, and pointer cancel events.
  • useAudioSourceLoader: Manages the setting and reloading of audio sources in a HTMLAudioElement.
  • useBoolean: Manages a boolean state with initialization options and provides methods to set it to true, set it to false, or toggle its value.
  • useEventListener: Adds event listeners to the window or any DOM element.
  • useIsomorphicLayoutEffect: Uses useEffect server-side and useLayoutEffect client-side for optimal rendering.
  • useObjectURL: Creates object URLs from a Blob or MediaSource and manages their lifecycle.
  • useSmoothTimeUpdate: Ensures smooth and continuous dispatch of timeupdate events in an HTMLAudioElement or HTMLVideoElement by utilizing animation frames.
  • useStateHistory: Manages a state value with a history, allowing the value to be updated, and provides methods to undo, redo, and navigate through the history of values.

hooks's People

Contributors

0xc1fa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.