Skip to content

Setting className to custom tag fails #134

Open

Description

@unclechu

purescript-react is v5.1.0

When I declare my own tag name by this command:

createElementTagName "my-own-tag-name" [className "container"]

And then when its rendered I got this tag in DOM tree but without class attribute and I see this warning in log:

Warning: Invalid attribute name: `0`
warning.js:33

Activity

  1. unclechu commented on Feb 15, 2018

    @unclechu
    Author

    Maybe I misunderstood something? I just used

    mkDOM (IsDynamic false) "my-own-tag-name" [class "container"]

    instead and it works.

  2. unclechu commented on Feb 15, 2018

    @unclechu
    Author

    I think I get it, createElementTagName is free to put anything as props, so I put array when I supposed to put a record, am I right?

  3. ethul commented on Feb 24, 2018

    @ethul
    Contributor

    Yes, you're correct. The props would have to be a record in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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