inferno: Creating Component vNodes using createVNode is not allowed (inferno4)
I am trying to convert my inferno v3 component to v4 and I have problem with this error:
Inferno Error: Creating Component vNodes using createVNode is not allowed. Use Inferno.createComponentVNode method.
What is guideline for replacing createVNode with createComponentVNode in inferno 4 ?
Should I use createComponentVNode only if type is Component and createVNode for everything else? if so, why this code throw Error? createVNode(2, 'div', props); type 2 is HTMLElement.

BTW, this is where I am trying to make it works: https://github.com/infernojs/inferno-transition-group/blob/next/src/TransitionGroup.js#L176
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (14 by maintainers)
You can check our inferno-compat implementation for that, its pretty good (fast and small)