Skip to content

Instantly share code, notes, and snippets.

View aminghs's full-sized avatar
😍
Happy

Amin Ghs aminghs

😍
Happy
View GitHub Profile
@aminghs
aminghs / Navbar Component
Created June 21, 2020 09:07
React Component
import React from 'react';
class NavBar extends React.Component {
render() {
const pages = ['home', 'blog', 'pics', 'bio', 'art', 'shop', 'about', 'contact'];
const navLinks = pages.map(page => {
return (
<a href={'/' + page}>
{page}
</a>