TKTim Kinnaneinnested.hashnode.dev·Nov 5, 2020 · 1 min readClean 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 ...02ID
TKTim Kinnaneinnested.hashnode.dev·Nov 3, 2020 · 2 min readParsing 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...00