Replies: 1 comment
-
Either: Also:
|
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a hast tree and I want to insert a react component, and then pass the hast subtree as a prop to that component (rather than via children - because there are multiple subtrees that i want to have control over within the component), how could I do that?
e.g.. tried doing this:
hast tree for
code
variable abovewhich works fine if i assign code.children to node.children, but wanting to know how i can pass the hast tree into the component as a custom prop, do I need to convert the hast to some kind of expression?
Beta Was this translation helpful? Give feedback.
All reactions