2022-11-28
|~3 min read
|559 words
Yesterday, I wrote about querying with Apollo. If you haven’t read that, I suggest starting there as it serves as the basis for the files I…
2022-11-28
|~5 min read
|806 words
After we’ve hooked up our Apollo client to React1, we can begin to query the server. Before Hooks, this was done using Render Props.2 Today…
2022-11-28
|~5 min read
|870 words
Recently, I needed the ability to track which items within a collection had been selected. As I thought about the problem, it felt like a…
2022-11-28
|~2 min read
|346 words
The hook in React is scheduled to run after render. There are three different categories of running it: Without dependencies With no…
2022-11-28
|~6 min read
|1108 words
When does it make sense to use a reducer vs a simple state value with React’s Hooks? There’s no hard-and-fast rule, but the React team…
2022-11-28
|~3 min read
|505 words
Today, I found a wonderful side-effect of : it doesn’t re-render components when it changes. This was ideal for my situation because I…
2022-11-28
|~2 min read
|282 words
I was recently trying to understand Material UI’s component. In looking through their implementation of the Horizontal Linear Stepper, they…
2022-11-28
|~5 min read
|843 words
When all you have is a hammer, every problem looks like a nail. When approaching new problems, it’s easy to fall into old ways of doing…