Props are unreasonable with HomeHero component which exposed to MDX #1388
MickeyMiao7
started this conversation in
General
Replies: 1 comment 3 replies
-
Good advice, we will improve this in the future. Since it may introduce a breaking change, we plan to ship it in Rspress v2. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
官网上,HomeHero 组件的参数是:

但实际在 MDX 中引入该组件并使用,需要将参数包裹在
frontmatter={{ hero: Hero }}
中,使用起来很不方便。Beta Was this translation helpful? Give feedback.
All reactions