React/Material-UIでfooterを実装
4208 ワード
./src/components/ui/Footer.js
import React from "react";
import { makeStyles } from "@material-ui/core";
const useStyles = makeStyles({
footer: {
color: "#ebf6f7",
backgroundColor: "#0f2350",
width: "100%",
position: "absolute",
bottom: 0,
},
});
const Footer = () => {
const classes = useStyles();
return <div className={classes.footer}>Footer</div>;
};
export default Footer;
./src/App.js
import logo from "./logo.svg";
import "./App.css";
import Footer from "./components/ui/Footer";
function App() {
return (
<div className="App">
<Footer />
</div>
);
}
export default App;
Author And Source
この問題について(React/Material-UIでfooterを実装), 我々は、より多くの情報をここで見つけました https://qiita.com/yono2844/items/94026dee72dfc254e89e著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .