useStateObject: A Simple, Convenient API Around useState
react
I am loving this API for working with React state. It’s a very light wrapper around useState. I call it useStateObject.
Read More
I am loving this API for working with React state. It’s a very light wrapper around useState. I call it useStateObject.
Read More
A 9.0 earthquake shook my front-end world when I discovered “layout primitives” at every-layout.dev. Then an aftershock rolled through when I learned about fluid sizing and spacing tokens from utopia.
Read More
Two articles I read this week have inspired the heck out of me. The first was by Jared Turner of thoughtbot with the punchy title “WIP is waste”.
Read More
I made a quick screen recording using the VSCode debugger to break on a line of code in my NodeJS electron process.
Read More
The one thing missing in every budgeting application is the “Spending Commitment”.
Definition: “A thing I am already committed to paying for”
Read More
Does this sound like you?
You are using Sprockets to pre-compile assets for production. You are using Kamal to deploy. You have asset bridging enabled in your deploy.
Read More
This is the syntax for setting an output parameter in a Github Actions step.
echo "{name}={value}" >> "$GITHUB_OUTPUT" Here’s an example of using this syntax in a workflow step.
Read More
Many people ask me about how to dynamically set the width and height of the Tree component based on its parent using react-arborist.
Read More
My first programming language was Ruby. Well, it was actually Microsoft Excel, then VBA, then C# for a university class, then Ruby.
Read More
Imagine hanging out with someone all day who berates you. They make final judgements about your character. They criticize anything you do imperfectly.
Read More
After 13 years of JavaScript, I finally have a way to remember how the comparator function in Array.sort() works.
I think the trouble is that all the examples use this shorthand syntax.
Read More
The Monaco Editor is awesome. It’s what powers VSCode. I wanted to use it to power the query editor pane in Zui, the data exploration app I work on.
Read More
I just published a JavaScript library called transitions-all-settled that allows you to wait for CSS transitions to settle before you do something.
Read More
There are only two types of transactions.
The ones you are present for. The ones you are not. This just dawned on me.
Read More
It's not uncommon to see this type of single element React component.
function Title({ children, ...rest }) { return <h1 {.
Read More
I love this quote by John Cutler from his post on disincentives.
“Good things can happen when you make it easier to do good things.
Read More
Any two people in a close relationship are bound to eventually hurt each other. To most of us, it is no surprise when this happens.
Read More
I have enough food in my kitchen.
I have enough water to drink.
I have enough clothes to wear.
I have enough things in my house.
Read More
This is a great podcast episode about company culture. The gist is, it doesn’t matter what people say or write about what the culture is.
Read More
I was just in the gym and as I lifted a weight I thought of the energy flowing out of me to lift it.
Read More
I love pipes. Anytime I can pipe something somewhere, it seems that order has claimed a victory over chaos. In fact, there is pipe-related photo of me at the end of this article for your viewing pleasure.
Read More
Comets are constantly falling.
We don’t know when.
But if we’re open, our eyes are open,
The comment will appear.
Read More
Swords drawn, Draw blood, Blood in the water
Recover, Respond, Respect
Cross the line, Cut too deep, Feel the heat
Read More
A common distinction in React is Controlled vs Uncontrolled components. But the real world is not so black and white…
Read More
A child knows nothing about itself. Its body is a mystery, its ideas, its dreams, its feelings. The child relies on caregivers to teach her everything.
Read More
I was talking with a group of friends trying to come up with possible answers to unanswerable questions like:
What happens when we die?
Read More
I’m working on a React app that has frequent data transitions. Each time a user submits a query, the state is reset as we wait for a response from the server.
Read More
While at a playground this weekend a man talked to my 3-year-old son in a way that upset me and I had to do something about it.
Read More
Experiences compress into memories.
Memories compress into feelings.
Feelings compress into instincts.
Instincts compress into the unconscious.
The unconscious compresses into the collective human unconscious.
Read More
We took a trip down to Joshua Tree this weekend for a cousin’s wedding. For the first time, I could appreciate the gifts of a desert climate.
Read More
I’ve owned a full frame camera for over 5 years. I’ve acquired 3 lenses and snapped many thousands of photos. And yet, last week I discovered these five tricks and was shocked by my ignorance of them.
Read More
When I’m angry I stop needing everyone to like me. I don’t care if they approve of what I do. My face doesn’t hurt from smiling all the time.
Read More
This post is half rant, half guide. Each of these 13 questions reveals tradeoffs that take time and mental energy to research.
Read More
I watch Netflix because I’m too tired to do anything else. The kids are finally sleeping and I’m spent.
It’s meant to be a quick escape from life before I do what I really need to do which is sleep.
Read More
What if we didn’t think of God as infinite.
What if God poured itself into this particular universe. What if He’s completely bound to this one cosmos.
Read More
All the time at the playground I hear, “good sharing!” and “no no Jackson, you need to share”.
We parents think it is some critical skill that children need to learn.
Read More
Whenever a class needs a few arguments in TypeScript, I cringe because I know I’m going to need to perform a ceremony to make it happy.
Read More
I’ve got an electron app that needs to be built on all three platforms. I’ve got three workflow files all with slightly differing steps.
Read More
What do I do when my component uses a ref internally but also needs to forward a ref from its parent?
Read More