Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Pure component notes #292

Merged
merged 2 commits into from
Dec 14, 2015
Merged

Pure component notes #292

merged 2 commits into from
Dec 14, 2015

Conversation

justingreenberg
Copy link
Contributor

resolves #277

@@ -34,11 +34,4 @@ describe('(Layout) Core', function () {
expect(_component.type).to.equal('div')
})

it('Should render a child component.', function () {
Copy link
Owner

Choose a reason for hiding this comment

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

This is because the test utils don't work with pure components yet, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly... do you want me to revert this commit to leave this as component class too?

Copy link
Owner

Choose a reason for hiding this comment

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

Not at all, was just making sure. And I'm not totally caught up to speed here: A regular React component class rendered inside of a pure component will still work w/ HMR, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davezuko yes all transforms are working, see below. i also tested hmr with multiple nested AboutViews to be sure react-transform is walking the full component tree 👍

Copy link
Owner

Choose a reason for hiding this comment

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

That would be amazing, and thanks for all the gifs, they help a lot!

dvdzkwsk pushed a commit that referenced this pull request Dec 14, 2015
@dvdzkwsk dvdzkwsk merged commit 118e36f into dvdzkwsk:master Dec 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hot Module Reloading not working with functional components
2 participants