Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Example of a simple Node Component
export default class BulletList extends Node {
static childContextTypes = {
isInList: React.PropTypes.bool
getChildContext() {
return { isInList: true }
render() {
// Render what we need and render in the children.
return <ul>{this.renderChildren()}</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment