March 2019
Intermediate to advanced
534 pages
14h 52m
English
Let's say that your app is composed of three pages. To navigate from page to page, you want to provide your users with links in the Drawer component. Here's what the code looks like:
import React, { useState } from 'react';import { Route, Link } from 'react-router-dom';import { withStyles } from '@material-ui/core/styles';import Drawer from '@material-ui/core/Drawer';import Grid from '@material-ui/core/Grid';import Button from '@material-ui/core/Button';import List from '@material-ui/core/List';import ListItem from '@material-ui/core/ListItem';import ListItemIcon from '@material-ui/core/ListItemIcon';import ListItemText from '@material-ui/core/ListItemText';import Typography from '@material-ui/core/Typography';import HomeIcon ...Read now
Unlock full access