Logo Awesome React

Awesome React

Gatsby.js + WordPress - Part 03 - Creating Menus

  • Details
In this episode I'm going to try to import WordPress menu into our Gatsby.js site, using WP REST API and GraphQL.

Now we are going to crate a new React.js component which will serve as sort of partial on our site. By making it a component we will be able to display our main menu anywhere we want on the site. And by using GraphQL we will have access to all our menu items and the information stored in them.

Also I'm going to fix two mistakes that I made in the previous video.

### Code used in this video


### Consider buying me a beer, thanks ;) !