Skip to content

Instantly share code, notes, and snippets.

@smontlouis
Created August 13, 2015 16:45
Show Gist options
  • Save smontlouis/39e3d26d67ad8e293e34 to your computer and use it in GitHub Desktop.
Save smontlouis/39e3d26d67ad8e293e34 to your computer and use it in GitHub Desktop.
<App>
<Component>
<Component2>
<Component3>
<Child/>
</Component3>
</Component2>
</Component>
</App>
//Child.react.js
import {featureCursors} in './Cursors';
<App>
<Component {...this.props}>
<Component2 {...this.props}>
<Component3 {...this.props}>
<Child name={propsToPass}/>
</Component3>
</Component2>
</Component>
</App>
<App>
<Component propsToPass={name}>
<Component2 propsToPass={name}>
<Component3 propsToPass={name}>
<Child name={propsToPass}/>
</Component3>
</Component2>
</Component>
</App>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment