Copy
View this email in your browser
TWiW|31.1.21 #119

Hi all,

This week we take a look at how you may brush up on your TypeScript, testing and more!

 

Enjoy 🎉

Use encapsulation
JavaScript

Use encapsulation

By Kyle Shevlin
Kyle Shevlin recommends that your React code should only use custom hooks, it's a compelling pattern and there's a ESlint plugin to help you remember to do so. He also provides a few examples of how you would refactor a typical useEffect into one.
10 bad TypeScript habits to break this year
JavaScript

10 bad TypeScript habits to break this year

By Daniel Bartholomae
As I'm fairly new to TypeScript, I do look for opinions on how it should or could be used, Daniel Bartholomae suggests ten bad habits you should break and why.
Common mistakes with React Testing Library
JavaScript

Common mistakes with React Testing Library

By Kent C. Dodds
React Testing Library is relatively new and the recommended patterns have changed, Kent C. Dodds discusses the most common suboptimal patterns he has witnessed and what the correct pattern should be.
Open source civilisation
Podcast

Open source civilisation

By The Changelog
Jakubowski from Open Source Ecology talks about how they’re developing open source industrial machines that can be made for a fraction of commercial costs, and they’re sharing their designs online for free.
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.

Ice cream photo by Sarah Kilian

Email Marketing Powered by Mailchimp