Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim de Beer committed Jul 17, 2017
1 parent d440640 commit 20ecb9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions test/props/children.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// const Thing = props => <div>{props.text}</div>

// this is step 1
const App = props => <div>hello</div>
const App = props => <div>hello<div>bye</div></div>

// step 2 is switch

// step 3 is getting those expression to work faster / better / stronger

module.exports = App
3 changes: 3 additions & 0 deletions test/props/result/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ module.exports =
if (!tree._) tree._ = {}
var _1 = tree._[1] = document.createElement('div')
_1.appendChild(document.createTextNode('hello'))
var _2 = tree._[2] = document.createElement('div')
_1.appendChild(_2)
_2.appendChild(document.createTextNode('bye'))
}
}
}

0 comments on commit 20ecb9e

Please sign in to comment.