-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
Doesn't work with React.Fragment #34
Comments
I am facing the same issue with https://github.com/storybooks/storybook/tree/master/addons/info React.Fragment = ({ children }) => children;
React.Fragment.propTypes = {
children: PropTypes.node.isRequired
};
React.Fragment.displayName = 'React.Fragment'; |
Faced this issue in
Maybe relate to this issue storybookjs/storybook#6147 |
I also see this issue with the combination of React.Fragment and the withInfo addon in Storybook 5.0.6 |
As I had the same issue I concluded that either we have |
As this seems to be a problem in addon-info I suggest someone go fix the bug there. Gonna close this issue since it doesn't have anything to do with addon-jsx |
Hello
I've tried to use
addon-jsx
for story that uses React.Fragment like this:and it fails with error:
It works perfectly once I replace
<Fragment>
with plain<div>
The text was updated successfully, but these errors were encountered: