Thomas James ByersUnderstanding the difference between Typescript’s void and neverTLDR: A function which runs to completion without returning anything has a return type of void, but a function which never completes…2 min read·Jun 16, 2019----
Thomas James ByersCan Hooks and Context replace React-Redux?Dan Abramov’s react-redux library gives us a way to connect our redux store to our react components. It saves us from having to pass props…3 min read·Nov 22, 2018----
Thomas James ByersShrinking Your bundle.js — Part 2: UglifyJSPluginPotential gain: ~30% reduction in bundle size1 min read·Dec 17, 2016----
Thomas James ByersShrinking Your bundle.js SeriesA series of posts on achieving a smaller bundle size1 min read·Dec 17, 2016----
Thomas James ByersShrinking Your bundle.js — Part 1: react-liteAn easy win with potentially large gains2 min read·Dec 17, 2016----
Thomas James ByersHow to write multi-module Typescript declaration filesAre you using Typescript and Lodash together? If so you’re probably not as type safe as you think.3 min read·Oct 16, 2016--1--1
Thomas James ByersMemoized function binding in ReactA common problem in react development is unnecessary virtual DOM re-rendering caused by bound functions. Consider the following example:2 min read·Sep 26, 2016----
Thomas James ByersUnit testing React components with shallow renderingSo you’ve created an awesome react component that displays a group of buttons. Finally, that Button component your colleague Bob wrote is…2 min read·Sep 4, 2016----