-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Labels
Description
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:
return `{${String(propValue)}}`; react-element-to-jsx-string/src/index.spec.js
Line 133 in 8a3144d
it("reactElementToJSXString(React.createElement('div', {title: Symbol('hello \"you\"')})", () => {