Created
October 1, 2015 01:03
-
-
Save goatslacker/13d69eab6d98353216ed 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
import AltContainer from 'alt/AltContainer' | |
import React from 'react' | |
class Child extends React.Component { | |
foo() { | |
console.log('im here') | |
} | |
render() { | |
return <div onClick={this.foo}>click me</div> | |
} | |
} | |
class App extends React.Component { | |
render() { | |
return ( | |
<AltContainer> | |
<Child /> | |
</AltContainer> | |
) | |
} | |
} | |
React.render(<App />, document.body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment