import React from "react" import PropTypes from "prop-types" export default class ModelExample extends React.Component { static propTypes = { getComponent: PropTypes.func.isRequired, specSelectors: PropTypes.object.isRequired, schema: PropTypes.object.isRequired, example: PropTypes.any.isRequired, isExecute: PropTypes.bool } constructor(props, context) { super(props, context) this.state = { activeTab: "example" } } activeTab =( e ) => { let { target : { dataset : { name } } } = e this.setState({ activeTab: name }) } render() { let { getComponent, specSelectors, schema, example, isExecute } = this.props const Model = getComponent("model") return