Skip to content

passing any tag name and css, styles and no key required for the ports #15

Open
@hipertracker

Description

@hipertracker

I created a more generic solution. It allows using any tag for the generated React node. It can also pass down classNames and styles to it. Sometimes it is important because injecting <div/> may mess with external HTML and CSS rules.

I also don't need to pass a key parameter to <Elm/> for sending changed data through ports.
https://gist.github.com/hipertracker/1423ac96662d49e432f20472478499b3

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