Compares two vanilla Javascript Date objects. Returns true is the first date falls before the second.

Loading Line

CSS class to create a Facebook-like loading line. Useful as an application loading indicator.

Plain Link

CSS class to reset a hyperlink's style to behave like normal text on the page.

useForceUpdate Hook

React hook for force a component to re-render. Useful for components which use a ref to render an external package into the DOM which React does not explicitly have control over.

useMountLog Hook

React hook to monitor when a component mount and unmounts. Useful for debugging.

Valid Base64 String Regex

Regex to test for a valid base64 string. Encoding at the start of the string must be removed (e.g. ~~data:image/gif;base64,~~R0lGOD...==)

Site Logo - Andrew Lazenka
© 2021 Andrew Lazenka. All Rights Reserved.