Skip to content

Help Needed: TypeScript Error When Styling a Custom H1 Component #1318

Answered by wooorm
YuliyaMinsk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Yulia!

Might be easier to just type props the way we do in the tests. Such as: https://github.com/remarkjs/react-markdown/blob/78160f5a0877675c1c18417a220f9948de143720/test.jsx#L567C16-L567C56.

Looking at your TS error, ReactI18Next seems like something that might be new, or from some other project? Could be that something recently happened to the React types.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YuliyaMinsk
Comment options

Answer selected by YuliyaMinsk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants