-
I specified HeadingComponent for h1 in components, but encountered an error.
HeadingComponent always has a level, so it seems that NormalComponent does not have a compliant index signature.
|
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
May 1, 2021
Replies: 1 comment 1 reply
-
The error message basically says that you didn’t type your |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error message basically says that you didn’t type your
HeadingComponent
as the expected heading component (https://github.com/remarkjs/react-markdown/blob/15b4757082cf3f32a25eba0b8ea30baf751a8b40/src/ast-to-react.js#L100-L102) though?