Skip to content

Option to specify custom identifier tags. #34

Open
@DylanPiercey

Description

Currently in JSX you are limited to valid JavaScript (lowercase) element names, otherwise a value is passed instead of a string.

It would be cool to add support for listing identifiers such as "!--" for comments.

<!-- text="Hi">
//-> DOM("!--", {text: "Hi"})

Instead of a syntax error.

Although I think a whitelist would be handy for third party virtual doms, ultimately the feature I'm looking for is html comments in jsx and perhaps it should be its own issue as the syntax would have to change a bit further (no attributes and ends with -->).
Let me know if I'm not making complete sense as I have typed this on a phone.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions