Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles((theme) => ({
nav: {
width: "100%",
position: "fixed",
textAlign: "center",
paddingTop: "1rem",
export default function Header(props) {
const classes = useStyles();
return (
<div className={classes.nav}>
<h2>Memorize word</h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment