Skip to content

Compatibility with Solid and other JSX flavors #2247

@DaniGuardiola

Description

@DaniGuardiola

Initial checklist

Problem

Currently this package is only compatible with React-like JSX flavors, for example by outputting className for CSS classes, and camel cased CSS properties in the style object..

Solution

The underlying utility used in the recma plugin to create the jsx is hast-util-to-estree. This util has recently updated to support options to customize how it get rendered (for example, by using class instead of className, which is necessary for Solid).

These new options should be made available and passed through by this package, so that users can take advantage of them.

Context: syntax-tree/hast-util-to-estree#7 (comment)

Alternatives

None :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions