Web dev links #8: useState and useStuff
Rename context
to stuff
context
is one of those terms that you see pretty often in software development. For the longest time I always interpreted it as having a special meaning, but this PR in Svelte has put it more in to "context" (pun intended) for me - context
is just stuff! Apparently inspired by an implementation in the Google search backend.
HTTP Caching is a Superpower
This is a good primer on HTTP caching - something that's become a little neglected in this day and age of SPAs.
7 things you may not know about useState
useState
is probably the simplest React hook, but there's still a bit of nuance to it as this article points out.
Scrollbar Reflowing
As someone who often switches back and forth between mouse and trackpad I'm well aware of the havoc scrollbars can play on a web design. It's nice to see then that we're going to be getting some better options for handling scrollbar state in CSS.
3 TypeScript Tricks I wish I knew when I learned TypeScript
There's a few neat Typescript tricks here. Readonly
in particular is one I'd like to start incorporating into my code.