Add m.fragment()
This commit is contained in:
parent
a3c273f802
commit
305035f03b
4 changed files with 49 additions and 2 deletions
7
render/fragment.js
Normal file
7
render/fragment.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
"use strict"
|
||||
|
||||
var Vnode = require("../render/vnode")
|
||||
|
||||
module.exports = function(attrs, children) {
|
||||
return Vnode("[", attrs.key, attrs, Vnode.normalizeChildren(children), undefined, undefined)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue