Linked List - 20190822

The Linked List is a collection of interesting articles that I have recently read and found beneficial. Today’s links cover web accessibility, TypeScript adoption, and React Hooks. Hey Domino’s, You’re Not Delivering: Recently Domino’s petitioned the United States Supreme Court saying that they did not need to make their website accessible. This post breaks down how the current website experience affects real people and callouts for areas of improvement. An Intro To Screen Reader Testing for Sighted Developers: This is a great article and introduction into using a screen reader for accessibility verification. Automated testing cannot catch all accessibility errors, including focus management. Getting some time using a screen reader is a great way to increase empathy and improve your site’s accessibility. ES6 — Map vs Object — What and when?: If you have ever wondered what the difference between a map and object is, or why you may want to use one over the other, this is the article for you. It does a great job breaking down the differences of the two, what they excel in, and when you may want to reach for one over the other. Adopting Typescript at Scale - Brie Bunge | JSConf Hawaii 2019: Brie does a fantastic job of breaking down the process of bringing TypeScript into a large organization. This interested in TypeScript or trying to rally a group of developers around it may glean from some of the lessons learned at AirBnB. 5 Tips to Help You Avoid React Hooks Pitfalls: React Hooks are a great addition to the ecosystem. In this post Kent C Dodds breaks down some potential gotchas and how to have the best experience possibilities working with hooks.

August 22, 2019 · 2 min · Skyler Lemay

Pragmatic uses for React Context

The purpose and use case for the React Context API long eluded me. I was familiar with what it did in principle, but struggled to find a use case for it. The Context API can solve some unique problems such as: grouping localized text strings and creating a language provider. In this post I share how the Context API can help solve these problems, as well as some sample code. ...

July 24, 2019 · 4 min · Skyler Lemay

Pragmatic Lessons from Converting to React Hooks

Hooks may not be the death of class based components, but they do encourage critical thought before reaching for a class component. Last week I decided to install the React 16.8 alpha on a branch and experiment with React Hooks in preparation for their release on February 6, 2018. The site utilized a render prop based Slideshow component in several places as well as a handful of other class based components. Through this process, I was able to consolidate the application code and eliminate all class based components from the site’s code base. The React team does not recommend refactoring your entire codebase to Hooks on their release. I did this primarily as a means to engage with the Hooks API in a relatively small codebase. You can find the code conversion to Hooks discussed in this post at the related PR. ...

February 6, 2019 · 7 min · Skyler Lemay