Fabio Biondi
biondifabio.bsky.social
Fabio Biondi
@biondifabio.bsky.social
Google Expert Angular | Freelance | LearnByDo.ing
An example of how #TypeScript can help us create more robust code.
Here, we use a "Union type" to type the properties of a #React component and handle different Notifications

Each branch of the JSX template will show only the right properties:

lbdo.ing/ts-book
December 5, 2024 at 10:34 AM
#typescript
Working on the new landing page of my next online book about TypeScript (with React v.19 examples too).

lbdo.ing/ts-book

Any feedback is appreciated
November 29, 2024 at 5:09 PM