Created
March 5, 2015 14:35
-
-
Save SanderSpies/63667af7aea53e0e392f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = <div> | |
if (foo) { | |
<something> | |
for(var i = 0, l = 10; i < 10; i++) { | |
<a prop={i} /> | |
} | |
</something> | |
} | |
"2222" | |
</div>; | |
--- | |
var foo = {type: 'div', children: []}; | |
if (foo) { | |
var fooChild = ({type: 'something'}); | |
for (var i = 0, l = 10; i < l; i++){ | |
fooChild.children.push({type: a, prop: i}); | |
} | |
foo.children.push(fooChild); | |
} | |
foo.children.push('2222'); | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment