- The purpose of this exercise is to get you used to being quizzed on Interview Questions commonly asked about React Router.
- Answers to your written questions should be recorded in Answers.md
- This is to be worked on alone but you can use outside resources. You can reference any old code you may have, and the React Documentation, however, please refrain from copying and pasting any of your answers. Try and understand the question and put your responses in your own words. Be as thorough as possible when explaining something.
- Don't fret or get anxious about this, this is a no-pressure assessment, NOT a pass/fail situation.
- What is the difference between server side routing and client side routing?
- Mention some advantages of using client side routing.
- Which component is used to define a route and what props are commonly added to it?
- How can I make sure that the component associated with the "/" route is not displayed for every other route?
- Use create-react-app to make an application, name it anything you want.
- Add a menu similar to the one on https://www.apple.com with a top level navigation.
- For each top level navigation (Mac, iPad, iPhone, etc) display a sub-navigation bar with links that when clicked show the appropriate component.
This example shows the sub-navigation for the /mac
route.
Your goal is to get the nested navigation working, no need to add animation or content to the components displayed other than some text to uniquely identify them.
Go build it!