Styling a Text Field for a Web App
Often times React components become hard to understand due to conditional rendering. At first a simple if/else or ternary operator appears benign to your overall readability, but over time as changes occur another if/else or ternary may be added.
Compounding this issue is when conditional operators are nested many times, which unfortunately is too easy to do.
Let's first look at how to conditionally render in React and then dive into several experiments that might present more readable ways to conditionally render in React.
In this video, Erik continues rebuilding a Ruby gem. You can find Part 1, here.
🔗 Links and Interestings
Egghead just released a “Talks” page with longer-form conference talk videos:
eggheadTalks are first and foremost interesting for web developers. These talks cover stories about products or experiences are building them, ideas for solving problems that exist today, or the history of computing.
Politics aside, this conversation with Jack Dorsey is really interesting. Specifically, the methodical approach to iteration and slowing down to think about the implications of small choices.
We're also about to cross $2 million in revenue from Tailwind UI, our first commercial Tailwind CSS product which was released about 5 months ago — a bit under two years after the very first Tailwind CSS release. Here’s the story from the beginning, while it’s still fresh enough to remember…
As a fun side note, Adam Wathan (co-author of TailWind) is a former guest on our podcast.