Skip to content

Symbol to not generate a valid JSX string #134

Closed
@armandabric

Description

@armandabric
const mySymbol = Symbol('foo');

console.log(reactElementToJsxString(<Button type={mySymbol} />));

It will output:

<Button type={Symbol(foo)} />

A valid JSX output could be:

<Button type={Symbol('foo')} />

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions