Created
February 3, 2016 05:11
-
-
Save ZaneWithSpoon/ebf3426b6aa5b880a262 to your computer and use it in GitHub Desktop.
This file contains 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
view Main { | |
view.pause() | |
let test = 'old' | |
function changeVar(){ | |
test = 'new' | |
//y u no update? | |
view.update() | |
return test | |
} | |
<word onClick={() => view.update()}> | |
click here for update | |
</word> | |
<Studio {...{test, changeVar}}/> | |
} | |
view Studio { | |
prop test | |
prop changeVar | |
on.props(() => { | |
console.log('onProps') | |
}) | |
let newVar = changeVar() | |
console.log(newVar) | |
<studio> | |
{test} | |
</studio> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment