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

ES6 AppView.jsx #22027

Merged
merged 3 commits into from Apr 26, 2018
Merged

ES6 AppView.jsx #22027

merged 3 commits into from Apr 26, 2018

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented Apr 24, 2018

We have a slow ongoing process of replacing all our uses of React.createClass with ES6 classes that inherit from React.Component. It's one of the last bits of tech debt we need to address before we can switch to React 16. There's a list of remaining components needing conversion here.

I'm just converting one more component with some minimal tests since there were none before. This one was imported with require() all over the place, so I had to update those imports to support a non-default export from the module (for testing purposes).

onMount: () => {},
};

it('no class names', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is very small, but I might go into a little more detail in your it statements (this test and below). I wasn't sure what each test was highlighting until I read through all of the expects. However, the expects themselves might do a better job than trying to boil down something descriptive enough for each it statement, so not sure that those need to be changed right now.

Approved, and this looks great! 🎉 yay ES6

@islemaster islemaster merged commit d5099f2 into staging Apr 26, 2018
@islemaster islemaster deleted the es6-appview branch April 26, 2018 00:18
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