I'm new to Framework and i have an issue with me sidebar which is showing Table tab as default but it should not show any tab's page as clicked. By default it should show nothing. When we click on a particular tab then it should show color on the tab of the sidebar. If i give -1 then the color is getting disappeared on the menu tab but the Tab's page remain as it is. Is it possible to give pathname. how to fix by giving id ? . If Yes Can anyone help me in fixing this issue?
Here is the code:
<Drawer
        className={classes.drawer}
        variant="permanent"
        classes={{
          paper: classes.drawerPaper
        }}
      >
        <div className={classes.toolbar} />
        <List>
          {["table", "home"].map((item, index) => {
            const Icon = itemsConfig[item].icon;
            return (
              <ListItem
                component={Link}
                to={itemsConfig[item].link}
                selected={selectedIndex === index}
                onClick={event => handleListItemClick(event, index)}
                button
                key={item}
              >
                <ListItemIcon>
                  <Icon />
                </ListItemIcon>
                <ListItemText primary={itemsConfig[item].text} />
              </ListItem>
            );
          })}
        </List>
      </Drawer>
Here is whole code: "https://codesandbox.io/s/fervent-browser-ecz7z"
Can anyone help me in this ?
 
    