New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

use-boop

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-boop

Extended react hook for Josh Comeau's boop effect

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
1.7K
-22.24%
Maintainers
1
Weekly downloads
 
Created
Source

use-boop

Extended react hook for Josh Comeau's boop effect

NPM

Install

npm install --save react-spring use-boop

Usage

import useBoop from 'use-boop';
import { animated } from 'react-spring';

const SomeComponent = () => {
  const [style, trigger] = useBoop({ rotation: 45 });

  return (
    <animated.div style={style} onMouseEnter={trigger}>
      {/* Child can be anything */}
      <AiOutlineQuestionCircle size={80} />
    </animated.div>
  );
};

Keywords

boop

FAQs

Package last updated on 26 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts