Skip to content

Instantly share code, notes, and snippets.

@mmcguff
Created August 10, 2021 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmcguff/fc1164fbde4ffe019c932329f3b3a3c1 to your computer and use it in GitHub Desktop.
Save mmcguff/fc1164fbde4ffe019c932329f3b3a3c1 to your computer and use it in GitHub Desktop.
The is a sample React component
import React, { Component } from "react";
import "../normalize.css";
import "./Home.css";
import Nav from "../components/home/Nav";
import Title from "../components/home/Title";
import Slider from "../components/home/Slider";
import Footer from "../components/home/Footer";
export default class Home extends Component {
render() {
return (
<div className="main-page">
<Nav />
<section className="main-content">
<div className="title-content">
<Title className="title-content" />
</div>
<div className="slider-content">
<Slider className="slider-content" />
</div>
{/*
<Slider className="slider-content" /> */}
</section>
<div className="footer">
<Footer />
</div>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment