Skip to content

String literals are not allowed in html! macro #757

@jstarry

Description

@jstarry

Description

Yew's html!{} macro deviates from JSX by not allowing text literals.

Proposed Syntax:
html! {
    <p>Hello</p>
}
Current Syntax
html! {
    <p>{ "Hello" }</p>
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions