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 Nov 3, 2021
1 parent c6058f8 commit c31cb30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/view/root-injects.jsx
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 c31cb30

Please sign in to comment.