Skip to content

Instantly share code, notes, and snippets.

@goatslacker
Created October 1, 2015 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goatslacker/13d69eab6d98353216ed to your computer and use it in GitHub Desktop.
Save goatslacker/13d69eab6d98353216ed to your computer and use it in GitHub Desktop.
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