Snippet
A collection of helpful snippets to help you, including myself to spin up the development. Remember, Do Not Repeat Yourself.
Explore Them
Do Not Run First Mount
Prevent Side Effect to run when component did first mount, but when the next state changes, do something
See snippet Do Not Run First MountInvalid Input Shake Animation
Simple shake animation when invalid input, very helpful for form validation
See snippet Invalid Input Shake AnimationuseClickOutside
Click outside element and run a callback, very helpful for element like dropdown
See snippet useClickOutsideuseWindowScrollPosition
Get window scroll position of Y axis or X axis
See snippet useWindowScrollPosition