Skip to content

Support all HTML attribute syntaxΒ #4

@davesnx

Description

@davesnx

Currently Reason JSX is limited to React's JSX, which is ok for newcomers and React devs but very undesired for other libs (Htmx, svelte, solidjs, vue, etc) but also for HTML directly.

Being able to support entirely the HTML spec would be a big win for mlx in this case. The reasonings are beyond libraries, and also integrations with DevTools, copy/paste and learnability.

  • data-* attributes
  • Attributes with : and @ (https://alpinejs.dev)
  • Tags with : <x:html>
  • Lowercase components (are already supported?)

I'm not sure if it's remotely possible to support some of these features, but having the way to achieve it, it's a must for me. The current situation with Reason JSX is to not be able to use data-* attributes directly, and need to React.createElement/cloneElement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions