Clean conditional layouts in ReactMaking conditional sections of markup in React is usually achieved by breaking into code blocks with ternaries or logical operators. That can make a layout hard to follow at a glance. It might even prompt you to break components down to avoid adding ...1 min read·nested.hashnode.dev2IDNov 5, 2020
Parsing short datesValidating and parsing short dates can be a problem when you're not sure if they'll come in D/M/Y or M/D/Y order. I made a basic utility to verify either without adding date library dependency. /** Validate parts of a separated string to test for a s...2 min read·nested.hashnode.devNov 3, 2020