Are desperate component is looking pretty good.
But there's one lesson we have to take care of.
You'll notice that at present we have a normal vanilla anchor tag inside of here.
If we flip over to our apt J.S. component you'll recognize that we still are making use of this serve
a new component.
That's just a dummy component but we have wired it up to the re-act router side of our application.
And so we have a defined route inside of your of slash surveys slash new.
And if we go there we'll show these serve a new component which in theory is going to be used to show
some form to our user.
So we want to make sure that whenever a user clicks on that add button the big red button they get redirected
over to this route right here and they start to see the form on the screen.
So in practice this is a pretty straight easy pretty straightforward easy refactor rather than showing
anchor tag.
We want to use a linked tag from the re-act router library.
So let's import it out to talk and make use of it inside of this component at the top.
We will import link from re-act router dom.
And don't forget that re-act router comes in a couple of different flavors.
We are in particular using re-act router dom because we are working inside the browser.
Now I'll find my anchor tag.
I will replace the opening a with link and I would place the closing line with link as well.
So we've got the class name here.
We need to also make sure that we have a two property that specifies where the user should be routed
to whenever they click on the button.
So we'll add on to make sure that if anyone clicks on this thing we will send them over to the surveys
slash new route.
So slash surveys slash new like so.
OK time to test this thing out.
A flip back over to my browser.
Wait for the refresh.
There it is.
Now I click on the Add button.
We get the survey new component appear on the screen and so it looks like this is definitely working
for right now.
OK.
So that's pretty much it with getting our dashboard working.
We can now go back and forth as we freely wish between these two screens.
So let's continue the next section.
We're going to start talking a lot more about these survey new component and exactly how we are going
to honor this form up to our application.
So I'll see you in just a minute.