<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/robinwieruch/best-of/2022" -->

---
title: Best Robin Wieruch posts of 2022 | daily.dev
description: The most upvoted Robin Wieruch posts of 2022, curated by the daily.dev community.
canonical: https://daily.dev/sources/robinwieruch/best-of/2022
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/robinwieruch/best-of/2022
og:type: website
og:site_name: daily.dev
og:title: Best Robin Wieruch posts of 2022 | daily.dev
og:description: The most upvoted Robin Wieruch posts of 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Robin Wieruch — 2022

1. 1  
[](/posts/mac-setup-for-web-development-2022--40fzeiias "Mac Setup for Web Development [2022]")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
8m read time • Feb 21, 2022  
### Mac Setup for Web Development \[2022\]  
This year (2022) I bought the new MacBook Pro after having used the MacBook Pro 2015 for the last years. This first month has been super exciting and I am up running working efficiently on my personal and professional web development projects. Here I want to share with you my Mac setup for web development that I have used.

+6  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/b62af944550cbacca77a37d637a980cb)  
174  
10
2. 2  
[](/posts/typescript-type-guards-bzrw-pz7t "TypeScript: Type Guards")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
3m read time • Oct 11, 2022  
### TypeScript: Type Guards  
In this TypeScript tutorial, you will learn how to check for user-defined type guards. We will start with two types and two objects annotated respectively with these types. In this example, we will get to our use case for type guards by declaring a function which increases the age of each type equally.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/75414ada0b6db52bf8903c1ef907a26d)  
37  
3
3. 3  
[](/posts/typescript-generics-0roqhb2j6 "TypeScript: Generics")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
3m read time • Aug 30, 2022  
### TypeScript: Generics  
TypeScript Generics are not easy to understand when just starting out with TS. If a third-party library implements generics properly, you don't have to think much about them when using these abstract libraries in your domain specific TypeScript application.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/b929187d70019d6b7cf09680a455741a)  
28  
1
4. 4  
[](/posts/react-hook-uselocalstorage-x-timbmxp "React Hook: useLocalStorage")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
1m read time • Apr 05, 2022  
### React Hook: useLocalStorage  
A neat custom React Hook that shows how to use local storage in React to store state. You can just use it in any React component and it allows you to write and read state. The hook is only there as a learning experience though. If you rely on the local storage for your React application in production, you should check out more widely used hooks.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/5ed34dfda00ce4b106ba42d32577a365)  
27  
2
5. 5  
[](/posts/react-hook-detect-click-outside-of-component-umgypipqe "React Hook: Detect Click outside of Component")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
4m read time • Apr 04, 2022  
### React Hook: Detect Click outside of Component  
A tutorial about how to detect a click outside of a React component by creating a custom React hook for it. For example, you may want such custom React Hook for various components like a dialog or dropdown, because they should close when a user clicks outside of them. Much of what you will learn here goes back to the concept of event bubbling and capturing in JavaScript.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ba15cfb6c5c3b6f9203ea9ea1da68797)  
27  
1
6. 6  
[](/posts/monorepos-in-javascript-typescript-nlwgv-lpe "Monorepos in JavaScript & TypeScript")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
17m read time • May 31, 2022  
### Monorepos in JavaScript & TypeScript  
This is a comprehensive tutorial on Monorepos in JavaScript/TypeScript. It uses state of the art tools for these kind of architectures in frontend applications. We will use React.js as framework of choice for creating applications and shared packages (UI components) within this monorepo. The practice of combining projects dates back to the early 2000.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ab3b07fa99a5420df095188807ff8ce1)  
26  
4
7. 7  
[](/posts/vite-with-typescript-tzczgk8tf "Vite with TypeScript")  
[![Robin Wieruch's profile](https://avatars.githubusercontent.com/u/2479967?v=4&s=64)](https://daily.dev/rwieruch)  
[![robinwieruch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0e34f790e35d4c21983b8e9512a8cc7f)](/sources/[source]/best-of/[year])  
1m read time • Oct 14, 2022  
### Vite with TypeScript  
The tutorial assumes that you have already created a React project with Vite in JavaScript. To use TypeScript in React (with Vite) install TypeScript and its dependencies into your application using the command line. You may encounter compile errors in the browser and editor/IDE when opening the renamed TypeScript files.

+6  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/d8fbd465c9e5bce5b9968625e8afafdd)  
17

[See all Robin Wieruch archives](/sources/robinwieruch/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/robinwieruch/best-of/2022#page","url":"https://daily.dev/sources/robinwieruch/best-of/2022","name":"Best Robin Wieruch Posts of 2022","description":"The most upvoted Robin Wieruch posts of 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/robinwieruch/best-of/2022#items","numberOfItems":7,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/mac-setup-for-web-development-2022--40fzeiias","name":"Mac Setup for Web Development [2022]"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/typescript-type-guards-bzrw-pz7t","name":"TypeScript: Type Guards"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/typescript-generics-0roqhb2j6","name":"TypeScript: Generics"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/react-hook-uselocalstorage-x-timbmxp","name":"React Hook: useLocalStorage"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/react-hook-detect-click-outside-of-component-umgypipqe","name":"React Hook: Detect Click outside of Component"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/monorepos-in-javascript-typescript-nlwgv-lpe","name":"Monorepos in JavaScript \u0026 TypeScript"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/vite-with-typescript-tzczgk8tf","name":"Vite with TypeScript"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Robin Wieruch","item":"https://daily.dev/sources/robinwieruch"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/robinwieruch/best-of"},{"@type":"ListItem","position":5,"name":"2022"}]}]}
```

