1.0.0 • Published 5 years ago
usedebug v1.0.0
Based on Tomasz Łakomy's egghead lesson on hooks
install
Uses the useEffect
hook from React 16.7+
npm install usedebug
usage
import React from "react"
const useDebug = require("usedebug")
function MyComponent() {
useDebug("mycomponent") // call useDebug with an optional id
return <div>Hey!</div>
}
like it?
:star: this repo
license
MIT © siddharthkp