Skip to content

JSX: no mention of the JSX uppercase/lowercase distinction in official docs #1102

@Alloyed

Description

@Alloyed

📚 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedLooking for assistance on this issuesolidRelated to core Solid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions