@pastable/atom-with-toggle
0.0.6 • Published 3 years ago
Detect and invoke a callback when clicking away of target element.
Define an event listener on window or a given element declaratively
One liner to force a re-render when needed
Keep track of a component mounted using ref/state.
A collection of pastable code gathered from past projects.
Like if useState had a child with Array. Makes it easy to work with an array of objects with all the actions available.
React effect hook that invokes only on update.
<h1 align="center"> 📦 A collection of pastable code gathered from past projects </h1>
A collection of pastable code gathered from past projects.