Skip to content

Noob questions - passing props, using svelte #34

Answered by ElMassimo
Madd0g asked this question in Q&A
Discussion options

You must be logged in to vote

@Madd0g Hi there!

The docs say, for optimal bundle size, if you have less than 3 components on the page, use svelte.

The docs are just citing the benchmark there. I emphasize that the right choice depends on the situation.

Necessary when embedding Preact, SolidJS, or Svelte components

I phrased it ambiguously. The full sentence should be "necessary if you are not using one of the other hydration directives.

I've corrected the docs to prevent confusion around this. You can use all hydration directives with all frameworks.

Thanks! 😃

Is there a right way of passing props to vue components from an mdx page?

Yes, use the standard MDX syntax, which is based around JSX. You can find exampl…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ElMassimo
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