import React, { Component } from 'react'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import MenuAppBar from '../components/MenuAppBar'; import APSettings from './APSettings'; import APStatus from './APStatus'; class APConfiguration extends Component { constructor(props) { super(props); this.state = { selectedTab: "apStatus", selectedNetwork: null }; } handleTabChange = (event, selectedTab) => { this.setState({ selectedTab }); }; render() { const { selectedTab } = this.state; return ( {selectedTab === "apStatus" && } {selectedTab === "apSettings" && } ) } } export default APConfiguration;