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 ...2IDNov 5, 2020 · 1 min readnested.hashnode.dev
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...Nov 3, 2020 · 2 min readnested.hashnode.dev