narze/react-useless

useThisHook

Closed this issue · 0 comments

narze commented

Returns the hook itself, so it can be chained indefinitely

Example usage:

const thisHook = useThisHook()
const anotherHook = thisHook()
const sevenfold = useThisHook()()()()()()()
...