Skip to content

Instantly share code, notes, and snippets.

View mvhoute's full-sized avatar

Martin van Houte mvhoute

  • Waddinxveen - The Netherlands
View GitHub Profile
@mvhoute
mvhoute / navigationLink.js
Last active October 17, 2019 11:33
NavigationLink Component to render a navigation item
@mvhoute
mvhoute / navigation.js
Created October 17, 2019 11:31
Navigation component to build the navigation with data from Kentico Kontent
import React from 'react';
import { graphql, StaticQuery } from 'gatsby';
import NavigationLink from './navigationLink';
const Navigation = ({ data }) => {
const navItems = data.allKenticoCloudItemNavigationRoot.nodes[0].elements.linked_navigation_items;
return (
<nav className="navigation">
<ul>