Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Capital DOM nodes are Components #9

@jridgewell

Description

@jridgewell

Currently, we're doing the following:

// Correct
<div id="test" />
elementVoid("div", null, ["id", "test"]);

// Incorrect
<Component id="test" />
elementVoid("Component", null, ["id", "test"]);

Notice, we've turned a Component into the string literal "Component". In proper JSX, capital DOM nodes are kept as Identifiers:

// Correct
<Component id="test" />
elementVoid(Component, null, ["id", "test"]);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions