Search

Post types:
Categories:
🔖

TypeScript string literal arrays

Read Note

A useful trick when working with tokenised values is that you can generate an "immutable tuple" within a "const context" (computer science gibberish overload 😂) and reference that. So if you have …

Published:
Categories:
  • JavaScript
Tags:
🔖

Why my code isn't in TypeScript

Read Note

Remy has some good arguments for why TypeScript can be just as much of an issue as it is a benefit. I've personally got a love/hate relationship with the abstraction, so it's always good to have some …

Published:
Categories:
  • JavaScript
Tags:
🔖

React TypeScript cheat sheet

Read Note

"Official" documentation on how to pair React and TypeScript. Very useful in conjunction with the GitHub …

🔖

Guide to React plus TypeScript

Read Note

I find navigating the type options in React (and decoding what they actually do/mean) really difficult. It's layers of abstractions on top of layers of more abstractions 😄 Luckily, this guide …

📖

Strictly Typed Object Keys in TypeScript

Read Article

Want to type a data object so that a given key (e.g. "foo") can only be paired with a specific type (e.g. Bar)? Now you can!

🔖

Today's JavaScript, from an outsider's perspective

Read Note

I can relate to Lea's frustrations (or, more specifically, those of her friend who doesn't often stray into JavaScript …

📖

React Summit 2020 Notes

Read Article

Notes from the fully remote React Summit 2020 (or at least the talks I tuned in for). Lots covered, from static-site generators and the Jamstack through to React state management and accessibility. What a fun day!

📖

JSNation Live 2020 Notes

Read Article

Another month, another big and fully remote JavaScript conference. JSNation fit into my schedule a little less (and didn't quite overlap with my interests as neatly) but it was a fun event with some interesting talks on topics that are often only on my periphery. Much to think about!