📚 Subject area/topic
/concepts/understanding-jsx.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/concepts/understanding-jsx
📋 Description of content that is out-of-date or incorrect
Somebody coming from react likely knows this already, but I'm rewriting our internal standards page to point to solid-js references instead of react where applicable.
As a rule, intrinsic components in JSX must begin with a lowercase letter. Solid Components must begin with an uppercase letter, as in react. This isn't called out in the JSX page for solid anywhere, so it's an undocumented rule, afaict.
here's react's callout for the same information: https://legacy.reactjs.org/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
📚 Subject area/topic
/concepts/understanding-jsx.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/concepts/understanding-jsx
📋 Description of content that is out-of-date or incorrect
Somebody coming from react likely knows this already, but I'm rewriting our internal standards page to point to solid-js references instead of react where applicable.
As a rule, intrinsic components in JSX must begin with a lowercase letter. Solid Components must begin with an uppercase letter, as in react. This isn't called out in the JSX page for solid anywhere, so it's an undocumented rule, afaict.
here's react's callout for the same information: https://legacy.reactjs.org/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response