This article inspired by Sara Vieira's talk "Build dumb sh*t".
Best way to learn something is to use it, to play with it (primitive interpretation...
For further actions, you may consider blocking this person and/or reporting abuse
I wrote one dumb hook (extracted from the code, actually), useClickAway, which detects a click outside of the element (so I could hide the dropdown menu, for example). It just was nicer to have it separated instead of that code being copypasted around in different components.
Nice. Do you have it as open source repo or a gist or a codesandbox?
Well, here it is.
This is what I did before in the component and how it's now:
vs
Wrote today
This is quite smart and more idiomatic than my version. Write more
useStackOverflow(question) - Posts your question to StackOverflow, runs the first answer through eval and then returns the result.
Ah classic