Skip to content

Commit

Permalink
Use createComponentVNode for exported components in the Inferno rende…
Browse files Browse the repository at this point in the history
…r shim
  • Loading branch information
insin committed Mar 11, 2018
1 parent 5692966 commit b741485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inferno/renderShim.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global NWB_QUICK_MOUNT_ID */

import {createVNode, render} from 'inferno'
import {createComponentVNode, render} from 'inferno'

let parent = document.getElementById(NWB_QUICK_MOUNT_ID)
let vnode = null
Expand All @@ -13,7 +13,7 @@ function renderEntry(exported) {
// Inferno component (which is either a function or class) or VNode (which has
// a flags property).
if (Object.prototype.toString.call(exported) === '[object Function]') {
vnode = createVNode(1 << 1 /* === VNodeFlags.ComponentUnknown */, exported)
vnode = createComponentVNode(1 << 1 /* === VNodeFlags.ComponentUnknown */, exported)
}
else if (exported.flags) {
vnode = exported
Expand Down

0 comments on commit b741485

Please sign in to comment.