From 12d1ecc84a214f6cee1186c7a1409832c9d4e68c Mon Sep 17 00:00:00 2001 From: Fabrizio Duroni Date: Fri, 3 Jan 2025 21:45:22 +0100 Subject: [PATCH] Fix typo :rocket: --- ...led-component-transient-props-type-mapped-type-typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/2025-01-03-styled-component-transient-props-type-mapped-type-typescript.md b/src/posts/2025-01-03-styled-component-transient-props-type-mapped-type-typescript.md index 660591d6b..9d4ef0b21 100644 --- a/src/posts/2025-01-03-styled-component-transient-props-type-mapped-type-typescript.md +++ b/src/posts/2025-01-03-styled-component-transient-props-type-mapped-type-typescript.md @@ -111,7 +111,7 @@ Based on the description above, we want to define a `TransientProps` type that i * add the `$` prefix to props that are not DOM attributes, and are defined by ourselves * skip the DOM props in some way, because they should still be forwarded -To start ith the implementation, we need first to check some types exposed by React. +To start the implementation, we need first to check some types exposed by React. In particular for our use case it will be useful the [`ComponentProps` type](https://react-typescript-cheatsheet.netlify.app/docs/react-types/ComponentProps). This utility type lets us extract the props of a React component received as generic parameter. The other interesting type is `React.JSX.IntrinsicElements`.