Skip to content

Instantly share code, notes, and snippets.

View Bockit's full-sized avatar

James Hiscock Bockit

  • Sydney, Australia
View GitHub Profile
@Bockit
Bockit / component-child.jsx
Created February 28, 2015 11:04
Context exploration
var React = require('react')
var Message = require('sub-component/message')
class Component extends React.Component {
getChildContext () {
return {
message: this.props.foo
}
}

Keybase proof

I hereby claim:

  • I am bockit on github.
  • I am bockit (https://keybase.io/bockit) on keybase.
  • I have a public key whose fingerprint is 8BFC D654 DE74 F85D 23E4 A199 FFE9 5DAC BA99 CB0F

To claim this, I am signing this object: