A component passed as a prop is rendered as a tag
The message
MARKLESS_COMPONENT_PROP_TAG_UNSUPPORTED: `<<tagName> />` in `<componentName>` renders the prop `<propName>`, and a component passed as a prop value cannot be rendered as a tag.
The compiler links every child component to the module it comes from at build time. A component that arrives as a prop value is only known when the page renders, so the build has no code to render it with.
Import the component in `<componentName>` and render it there, or have the caller place it inside `<<componentName>>` as children and render `{children}` instead of `<<tagName> />`.
https://markless.dev/errors/MARKLESS_COMPONENT_PROP_TAG_UNSUPPORTEDWords in angle brackets change from case to case.
Why
The compiler links every child component to the module it comes from at build time. A component that arrives as a prop value is only known when the page renders, so the build has no code to render it with.
Fix
Import the component in `<componentName>` and render it there, or have the caller place it inside `<<componentName>>` as children and render `{children}` instead of `<<tagName> />`.
Related
Where Markless raises it
Button sounds are from Josh Comeau's Button Sounds library.