1.0.1 • Published 5 years ago

use2137 v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

use2137

React Hook that listens for user to type 2137 and calls a callback function. Good to hide cenzo easter egg on your website

NPM JavaScript Style Guide

Install

npm install --save use2137

Usage

import React, { Component } from 'react'

import use2137 from 'use2137'

const Example = () => {
  use2137(() => alert('jp2gmd'))
  return (
    <div>xd</div>
  )
}

License

MIT © bimbenders


This hook is created using create-react-hook.