Skip to content

Instantly share code, notes, and snippets.

@ovpv

ovpv/header.js

Created Aug 7, 2019
Embed
What would you like to do?
header Component with menu links
import React, { Component,Fragment } from "react";
import { MenuLinks } from "../../../routes";
export default class Header extends Component {
render() {
return (
<Fragment>
{MenuLinks.map((menu, index) => (
<Link to={menu.url}>{menu.menuText}</Link>
))}
</Fragment>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment