Skip to content

Specify the attribute to assign a value to Attr or Prop #281

@Himavanta

Description

@Himavanta

I use CrankJS and Ionic to develop an H5 application. Ionic uses the WebComponent specification. I need to follow the official documentation to pass in certain properties as Prop instead of Attr. I checked the documentation of CrankJS and found no relevant content.

Here is the smallest display of the problem I am facing

I was wondering, if I didn't miss anything, whether there can be the following syntax for such a requirement to be handled clearly, just like the preact processing method, can it be considered? For now, I need it very much.

<div prop:demo1="demo1" attr:demo2="demo2"> test-div </div>

Preact support for prop: & attr: directives

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