Welcome to #99.
React hooks are causing problems which can only be solved by another React hook which is causing problems which can only be solved by another React hook which is causing problems which can only be solved by another React hook.
React Hooks is turtles all the way down
Using React hooks is kinda like cutting your own hair. Seems easy enough, but in reality you’re a screw up away from a buzzcut and an unhappy spouse (couldn’t be me…). For years now React developers have struggled with the hooks API, specifically with
Fortunately, the React core team just posted a RFC (request for comments) for a new hook to solve your problems… or confuse you even more… or both (jury’s still out).
We don’t have space to go into all the details, (that’s what the RFC is for), but here’s the tl;dr. The new hook is called
If that’s confusing, here’s a great tweet that should help.
The React core team is still collecting feedback on the API, so there’s a small chance the name or something else important will change. But we’re confident it will turn out great (given that design by committee typically produces great results 🙂).
The bottom line: Some hooks are confusing. And so more, less confusing hooks will help with the confusing hooks. Don’t worry if you’re confused - you’re not alone.
“You set this up in 5 minutes? Incredible.” [sponsored]
FusionAuth made my job fun again
I got into this industry for one reason — my burning passion for building complex authentication solutions.
Ok, that’s a lie.
Call me old fashioned, but I’m just a little more interested in building features that users *actually* care about — instead of worrying about crap like SSO, MFA, user management, and all the security headaches that come along for the ride.
That’s why we’re huge fans of FusionAuth.
They handle all of the messy auth and security stuff for you, and make it super easy to integrate with your app in 5 minutes or less (no matter how weird your tech stack is).
They’re also way more flexible than most other auth tools — you can deploy anywhere, you can self-host, and you can easily customize whatever you want with their straightforward APIs and webhooks.
Check it out — and never worry about hand rolling auth again.
I’ve had it with these mother-fricking snakes in my mother-fricking HTML
Python in the browser?
We knew this day would come eventually: Python is coming for the web. This is not a drill.
Wtf? The Anaconda team just announced PyScript — a brand new framework that lets you run Python in the browser and build web apps using Python and “special HTML tags”, which we all know and
Why tho? Because just like Jörmungandr, the giant snake child of Loki in Norse Mythology that wraps itself around the entire world, Python is coming for us all.
Besides the subtweeting, here’s what else is going on inside PyScript:
The bottom line: You can keep your fancy new “simplified web platform.” I’ll be over here executing arbitrary code from NPM while I argue on Twitter about a UI library being too low level.
Yeti Labs is a human-centered frontend studio designing and building web apps for DeFi protocols. We love UI animations, innovative UXs, best practices, reusing our code, improving our workflow and learning new things. Come join our crew as we solve interesting challenges while having fun.
Most email platforms are showing their age — heck, this email was sent via a platform that is 9 years old now! Loops is a modern and beautiful alternative for SaaS companies. Our stack is Next.js, Postgres, and Tailwind. We just wrapped YC and our seed funding raise led by Craft Ventures. Come join our core engineering team!
📝 QUIZ TIME — Sponsored by Retool
Retool’s brand new React component library makes it super easy to build any internal tool you can think of. We use Retool daily and we ❤️ it.
Given this HTML and CSS, what color is the background of the page?
📝 QUIZ TIME Solution — Sponsored by Retool
The bug is using
Delivered to 112,202 developers every Monday
This is the first ever newsletter that I open a music playlist for and maximize my browser window just to read it in peace. Kudos to @uidotdev for great weekly content.
The Bytes newsletter is a work of art! It's the only dev newsletter I'm subscribed too. They somehow take semi boring stuff and infuse it with just the right amount of comedy to make you chuckle.
Bytes has been my favorite newsletter since its inception. It's my favorite thing I look forward to on Mondays. Goes great with a hot cup of coffee!
I subscribe to A LOT of dev (especially JS/TS/Node) newsletters and Bytes by @uidotdev is always such a welcomed, enjoyable change of pace to most (funny, lighthearted, etc) but still comprehensive/useful.
Literally the only newsletter I’m waiting for every week.
Bytes is the developer newsletter I most look forward to each week. Great balance of content and context! Thanks @uidotdev.
The sense of humor and structure of the Bytes Newsletter is first class and the information that comes with it is enough to make a mini course.
Very few newsletters manage to be useful and not very boring. @uidotdev manages to achieve these pretty effortlessly. You can almost see Tyler chuckle as he writes them.