We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
react-element-to-jsx-string/src/formatter/formatPropValue.js
Line 33 in 8a3144d
react-element-to-jsx-string/src/index.spec.js
Line 133 in 8a3144d
The text was updated successfully, but these errors were encountered:
fix(formatting): symbol description are now quoted
d6ed8a7
Closes algolia#134 BREAKING CHANGE: Symbol description are now correctly quoted. This change the output if you use Symbol in your code
2747f1b
Closes #134 BREAKING CHANGE: Symbol description are now correctly quoted. This change the output if you use Symbol in your code
No branches or pull requests
It will output:
A valid JSX output could be:
See:
react-element-to-jsx-string/src/formatter/formatPropValue.js
Line 33 in 8a3144d
react-element-to-jsx-string/src/index.spec.js
Line 133 in 8a3144d
The text was updated successfully, but these errors were encountered: