Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import { Link, animateScroll as scroll, scroller } from "react-scroll";
- class Navbar extends Component {
- render() {
- return (
- <div>
- <ul>
- <li>
- <Link to="section1" activeClass="active" spy={true} smooth={true}>
- Section 1
- </Link>
- </li>
- </ul>
- </div>
- );
- }
- }
- export default Navbar;
- import React from "react";
- // Styling
- import "./styles/App.css";
- // Components
- import Navbar from "./components/Navbar";
- import SectionOne from "./components/SectionOne";
- function App() {
- return (
- <div className="App">
- <div>
- <Navbar />
- <SectionOne id="section1"/>
- </div>
- </div>
- );
- }
- export default App;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement