Devtrium (@devtrium) header
Devtrium (@devtrium) profile picture

Tutorials on all things front-end and React! Written by @PierreOuannes

Joined August 2021
How to use React useReducer hook like a pro ✍ @devtrium https://teapawt.net/t.co/9cScl6HeBb
3
4
How to use React Context like a pro. ✍ @devtrium https://teapawt.net/t.co/KbERFs64v1
3
10
🧵 React & TypeScript: how to type hooks @PierreOuannes 's post is a good intro on how to type React hooks with TypeScript Covering various TS features: inference, discriminated union types, type guards... devtrium.com/posts/react-typ…
1
2
24
5/ React & TypeScript: use generics to improve your types by @PierreOuannes Good intro to generics Analysis of the useState TS signature Ends with a generic <Select> comp working with string or number devtrium.com/posts/react-typ…
1
6
42
6/ Use useReducer hook like a pro by @PierreOuannes A deep dive on the useReducer hook Introducing the basics Explains when to use it over useState Compare with Redux devtrium.com/posts/how-to-us… Using form state as examples
1
11
28
Before jumping to a library to help you manage your state issues, you should be aware of another native way to manage your state in React: useReducer. { author: @PierreOuannes } #DEVCommunity dev.to/pierreouannes/how-to-…
6
14
Before jumping to a library to help you manage your state issues, you should be aware of another native way to manage your state in React: useReducer. { author: @PierreOuannes } #DEVCommunity dev.to/pierreouannes/how-to-…
3
7
Using React's Context API is often very useful. I've found that there are several patterns that you should regularly use in combination with contexts in React, and these patterns aren't that well known... { author: @PierreOuannes } #DEVCommunity dev.to/pierreouannes/how-to-…
10
37
Events are everywhere in React, but learning how to properly use them and their handlers with TypeScript can be surprisingly tricky. There are several ways to do it, some better than others. { author: @PierreOuannes } #DEVCommunity dev.to/pierreouannes/react-e…
15
42