Skip to content

Can customized React components be used instead of default components? #64

Answered by mfix-stripe
matsudai asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of using a different component for each heading level, we recommend you pass the level as a prop instead of encoding it in the components name.

This is how we handle it in our own site:

Hope this helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mfix-stripe
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
Converted from issue

This discussion was converted from issue #56 on May 31, 2022 16:16.