Skip to content

Instantly share code, notes, and snippets.

@diegocasmo
Created February 9, 2017 14:39
Show Gist options
  • Save diegocasmo/bfeeb6991a615b16d43c9c2151b31d16 to your computer and use it in GitHub Desktop.
Save diegocasmo/bfeeb6991a615b16d43c9c2151b31d16 to your computer and use it in GitHub Desktop.
<Tabs/> component hierarchy concept
<Tabs>
<Tab iconClassName={'icon-class-0'} linkClassName={'link-class-0'}>
<p>content 0</p>
</Tab>
<Tab iconClassName={'icon-class-1'} linkClassName={'link-class-1'}>
<CustomComponent propA={'foo'} propB={this.handleSomething}/>
</Tab>
</Tabs>
@diegocasmo
Copy link
Author

Source code for full implementation (including tests) can be found here: https://gist.github.com/diegocasmo/5cd978e9c5695aefca0c6a8a19fa4c69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment