Closed kvnneff closed 9 years ago
import dom from 'dekujs/virtual-element' let Form = dom('form', {}, []) export function render () { return dom(Form, {}, []) }
The above will return a vnode with type as an object: { attributes: Object, children: Array[0], type: Object }
type
{ attributes: Object, children: Array[0], type: Object }
The type object looks like: {propTypes: {transform: {type: function}}}
{propTypes: {transform: {type: function}}}
I believe type should equal form. Am I using components incorrectly?
form
I was misunderstanding the API. Closing this.
The above will return a vnode with
type
as an object:{ attributes: Object, children: Array[0], type: Object }
The
type
object looks like:{propTypes: {transform: {type: function}}}
I believe
type
should equalform
. Am I using components incorrectly?