Copy
View this email in your browser
TWiW|3.1.21 #118

Hi all, Happy New Year!

I’d like to start by saying a big ‘thank you’ for not unsubscribing during TWiW hiatus! I didn’t read as much in 2020, and what I did read was not as interesting or inspiring — I didn’t want to turn this email into a link dump!

So for the first issue in 2021, we take a look at replacing Axios with Fetch, why it’s still OK to prop drill in React, CSS-in-JS performance and more!

 

Enjoy 🎉

Replace axios with a simple custom fetch wrapper
JavaScript

Replace axios with a simple custom fetch wrapper

By Kent C. Dodds
Axios is capable of a lot, but the browsers fetch API is capable of performing most of the common use cases. Kent C. Dodds shares his simple approach to wrapping the fetch API so you can have a smaller, simpler footprint for your API requests.
The upside of prop drilling in React
JavaScript

The upside of prop drilling in React

By Belinda Ijeoma
Prop drilling used to be the de facto way to provide data to child components and depending on how nested said component is, this becomes a chore. That said it shouldn't be discouraged as there are still many valid reasons to pass props. Belinda Ijeoma discusses the upside of prop drilling.
2020 ipsum
Util

2020 ipsum

By Savas Labs
A little bit of fun, 2020 ipsum from Savas Labs provides handy placeholder text for when you need it!
How to increase CSS-in-JS performance by 175x
CSS

How to increase CSS-in-JS performance by 175x

By Dominic Tobias
Dominic Tobias discusses the performance drawback of CSS-in-JS and provides solutions to reduce the impact, from using a build time CSS-in-JS library to data attributes and CSS variables.
React hot toast
JavaScript

React hot toast

By Various
Toast notifications are an easy way to present information to your users when something happens in the background, this mini library lets you add toast notifications easily to any React app, it is styled by default but also supports themes!
Follow Naz on Twitter
Website
Copyright © 2021 This Week in Web, All rights reserved.


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Dog with branch photo by K. Mitch Hodge

Email Marketing Powered by Mailchimp