Mae Capozzi

Hi! I'm Mae Capozzi. You can find me on Twitter and on Github.

Before You Build A Component Library: Versioning

April 10, 2019

This post is part of an ongoing series about the problems you’ll need to solve before you start building a component library. Stay tuned for…

useBreakpoints: a hook

February 15, 2019

I built my first hook a few months ago, and figured I should get it up on the blog. It’s a replacement for a Higher Order Component that…

Why you should avoid the --parallel flag in lerna build scripts

February 15, 2019

When you’re configuring a monorepo with lerna, you might consider writing your build scripts like this: It makes sense, initially! You’re…

How to use React.Lazy

October 29, 2018

React 16.6.0 introduced , which allows you to code-split using the new Suspense API. Siddharth Kshetrapal came out with a great video…

Passing Data in React with Prop Drilling

August 14, 2018

The React ecosystem offers multiple ways to pass data and manage state in a client-side application. A developer might choose between prop…

Should You Build a Reusable Component Library?

June 12, 2018

Modular frontends are all the rage these days, especially with the rise of React.js. Large companies have begun open-sourcing their…

Keep Your Codebase Neat and Tidy with prettier-standard, lint-staged, and husky

February 10, 2018

Developers tend to have opinions on style. If you’ve been in the industry for more than 15 minutes, you’ve at least heard about the…

Shining a Spotlight on Error Boundaries in React 16

December 20, 2017

React 16 has better error handling than previous React versions. If an error occurred inside of a component, it would “ corrupt React’s…

From Callbacks to Async Await

December 09, 2017

I built the same program 4 different ways. I started with callbacks, moved on to Promises, used generators, and finished up with async/await…

How to Make HTTP Requests in React, Part 1

December 09, 2017

You can find part 2 here , and part 3 here . This series will walk you through how to make HTTP requests to the Github REST API in…

How to Make HTTP Requests in React, Part 2

December 09, 2017

If you haven’t completed part 1 of this tutorial, do so before starting part 2. Now that we’ve set up our project using create-react-app…

How to Make HTTP Requests in React, Part 3

December 09, 2017

If you haven’t completed part 1 and part 2 of this tutorial, please do so before starting part 3. Now we’re getting to the good part! So…

Simplified JavaScript: Hoisting

October 24, 2017

Hoisting remains one of the quirkier aspects of JavaScript. When a developer declares a variable in JavaScript, that variable *behaves *as…

Simplified JavaScript: Getting Started with Closures

October 22, 2017

Eric Elliot, in his Medium article Master the JavaScript Interview: What is a Closure? , explains that when he interviews candidates for…

Non-Electronic Sundays, Or How My Mom Predicted the Future

September 12, 2017

When I was a kid, my mom instituted a very unpopular policy amongst my siblings and I––the non-electronic Sunday. After watching my…

How To Set Up D3.js with webpack and babel

February 21, 2017

Before you begin, make sure you have node and npm installed. Use a node version higher than 6. Also, note that all terminal commands are for…