Skip to content

Commit

Permalink
Fix inheritance (/cc @vincentaudebert)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 22, 2018
1 parent 239b819 commit e8e468c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/react.js
Expand Up @@ -49,7 +49,7 @@ export function connect(mapStateToProps, actions) {
this.render = () => createElement(Child, assign(assign(assign({}, boundActions), this.props), state));
}
Wrapper.contextTypes = CONTEXT_TYPES;
return (Wrapper.prototype = Object.create(Component)).constructor = Wrapper;
return (Wrapper.prototype = Object.create(Component.prototype)).constructor = Wrapper;
};
}

Expand Down

0 comments on commit e8e468c

Please sign in to comment.