import React, { PureComponent } from 'react'; import Explore from './Explore'; export default class Wrapper extends PureComponent { state = { initialState: null, split: false, }; handleChangeSplit = (split, initialState) => { this.setState({ split, initialState }); }; render() { // State overrides for props from first Explore const { initialState, split } = this.state; return (
{split ? ( ) : null}
); } }