Skip to content
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

React: Convert storybook-specific components to ES6 #18417

Merged
merged 11 commits into from Oct 17, 2017
Merged

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented Oct 17, 2017

Converts components created/used exclusively in storybook files to ES6.

Also deduplicates the ExampleDialogButton component we use in a few of our stories. This actually results in more overall code, but I think where it gets more verbose it actually expresses expected usage of the component being rendered in the story better (instead of passing the component's props into ExampleDialogButton and assuming the reader knows they are passed through).

It's probably helpful to either view this diff without whitespace (?w=1) or view the last couple of commits on their own.

Copy link
Contributor

@balderdash balderdash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

};
},
class StorybookHarness extends React.Component {
state ={value: 0.5};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: space after the equal sign

@islemaster islemaster merged commit 212b50a into staging Oct 17, 2017
@islemaster islemaster deleted the react-es6-stories branch October 17, 2017 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants