8000 renameAttrs option no longer works · Issue #28 · alexmingoia/jsx-transform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
renameAttrs option no longer works #28
Open
@ivan-kleshnin

Description

@ivan-kleshnin

I'm coming back to CycleJS and JSX-Transform after some break.
Versions and APIs of both changed quite a bit 😄

I discovered that renameAttrs option no longer works.
It is undocumented (why?) but still present in source code.

This JSX transform options:

let jsxOptions = {
  factory: "Cycle.h",
  renameAttrs: {
    "class": "className",
  }
};

now produces this invalid VirtualDOM code:

Cycle.h('input', {class: "myinput", type: "text"})

instead of expected:

Cycle.h('input', {className: "myinput", type: "text"})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0