July 2017
Intermediate to advanced
300 pages
5h 43m
English
We are going to keep the feed menu in the Drawer component of React MDL that shows up automatically on wide screens and hides in the burger menu on smaller ones:
./ts/Components/Menu.tsx
import * as React from "react";
import { Drawer, Navigation, Icon, FABButton } from "react-mdl";
export default class Menu extends React.Component<{}, {}> {
render (){
return (
<Drawer className="mdl-color--blue-grey-900 mdl- color-text--blue-grey-50"> <Navigation className="mdl-color--blue-grey-80"> <a> <Icon name="& #xE0E5;" /> Link title </a> </Navigation> <div className="mdl-layout-spacer"></div> <div className="tools"> <FABButton mini> <Icon name="add" /> </FABButton> <FABButton mini> <Icon name="delete" /> </FABButton> <FABButton ...Read now
Unlock full access