Skip to content

Commit

Permalink
feat: allow using functional components with hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Oct 12, 2021
1 parent 7dd9507 commit 70730cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/view/root-injects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const render = (getSystem, getStore, getComponent, getComponents, domNode
}

// Render try/catch wrapper
const createClass = component => class extends Component {
const createClass = OriginalComponent => class extends Component {
render() {
return component(this.props)
return <OriginalComponent {...this.props} />
}
}

Expand Down

0 comments on commit 70730cc

Please sign in to comment.