How to use the react-styleguidist/lib/client/rsg-components/Playground/Playground.prototype function in react-styleguidist

To help you get started, we’ve selected a few react-styleguidist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vue-styleguidist / vue-styleguidist / packages / vue-styleguidist / src / client / rsg-components / PlaygroundAsync / PlaygroundAsync.js View on Github external
])
		}).isRequired
	}

	static contextTypes = Playground.contextTypes

	static getDerivedStateFromProps = Playground.getDerivedStateFromProps

	constructor(props, context) {
		super(props, context)
		Playground.call(this, props, context)
	}

	componentWillUnmount = Playground.prototype.componentWillUnmount

	handleChange = Playground.prototype.handleChange

	handleTabChange = Playground.prototype.handleTabChange

	render() {
		return Playground.prototype.render.call(this)
	}
}

export default polyfill(PlaygroundAsync)
github vue-styleguidist / vue-styleguidist / packages / vue-styleguidist / src / client / rsg-components / PlaygroundAsync / PlaygroundAsync.js View on Github external
}),
				PropTypes.bool
			])
		}).isRequired
	}

	static contextTypes = Playground.contextTypes

	static getDerivedStateFromProps = Playground.getDerivedStateFromProps

	constructor(props, context) {
		super(props, context)
		Playground.call(this, props, context)
	}

	componentWillUnmount = Playground.prototype.componentWillUnmount

	handleChange = Playground.prototype.handleChange

	handleTabChange = Playground.prototype.handleTabChange

	render() {
		return Playground.prototype.render.call(this)
	}
}

export default polyfill(PlaygroundAsync)