Our navigation is currently taking up some serious real estate, and although it worked for our previous examples, it just won't work well with the rest of the examples for this book. So, first we need to clean up this application in order to focus on the actual content of our application. We'll clean up our markup to use the select
component. Then we'll add interactivity, so that our select
element actually switches between pages.
Before we start coding, create an App.Nav.js
file in our JavaScript directory. Once the file is created, let's include it at the bottom of our page with the following script tag:
<script src="../js/App/App.Nav.js"></script>