0
Interface utilisateur sur un composant de réaction. J'ai un composant <BottomNavigationItem />
. Cela se traduit réellement par <button>
. Comment puis-je réellement rendre le rendu/naviguer vers une URL?Material-UI BottomNavigationItem URL
class FooterNavigation extends Component {
state = {
selectedIndex: 0,
};
select = (index) => this.setState({selectedIndex: index});
render() {
return (
<footer className="mdl-mini-footer">
<Paper zDepth={1}>
<BottomNavigation selectedIndex={this.state.selectedIndex}>
<BottomNavigationItem
label="Reviews"
icon={reviewIcon}
onClick={() => this.select(0)}
/>
</BottomNavigation>
</Paper>
</footer>
);
}
}