how to retain static properties on a layout component #1825
Unanswered
stefanprobst
asked this question in
Q&A
Replies: 1 comment
-
Why have this written in MDX though? Maybe this is distilled down, but it looks like only JavaScript, so why not have that in JavaScript? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when wrapping a mdx document in a layout component via default export, how can i retain static properties defined on that layout component function?
example usecase: https://github.com/stefanprobst/issue-mdx-layout-props
in the above example, the mdx document default-exports a
Layout
component with agetPageWrapper
property. how can i retain thatgetPageWrapper
property on the default export after compilation (i.e. move it fromMDXLayout
toMDXContent
)?Beta Was this translation helpful? Give feedback.
All reactions