Not too long ago, my friends and I were trying to find a waterfall in rural northern Vietnam. We set off with our bikes, some offline Google maps and a decent GPS signal. The paved road shortly became a gravel path, which then turned into a goat track. Determined to find the waterfall, we ditched the bikes and continued on foot. We followed the map until it pointed us off the edge of a cliff. Instead of following the map off the cliff, I decided it was time to put the phone away. …
For the last year, I have had a little blue elephant staring wishfully at me from my book shelf. Recently, it got to a point where I couldn’t let those beautiful eyes stare any longer. I decided to read Learn You a Haskell for Great Good.
When I picked up this book, I thought this was going to be like comparing apples to oranges. To my surprise, Haskell’s…
Fetching data, showing loading states and rendering responses are traditionally all responsibilities of the React developer. Announced at JSConf Iceland, the new “Suspense” feature moves many of these responsibilities into React itself.
My first reaction to this announcement was one of irrational fear-of-change.
“These are things a developer can already do, why does React need to provide them?”
Emotional knee-jerks aside, my curiosity remained. Needing to know how Suspense works, I decided to see how closely I could recreate it in React 16.2.
First, a refresher on how suspense is used.
CharacterList component renders a list of Star…
Friend of the front-end @Atlassian