Redirections
Redirecting to a different page
What if there is a Pokémon among all of them that should be considered the GOAT? What
we are going to do right now is creating a new route /pokemons/GOAT
that points to the best
Pokémon of the first generation.
First, let's create a new route by just creating a new file /pokemons/GOAT.rs
and pasting the following code:
Now let's create the button in the home page to actually point to it!
Now at http://localhost:3000/ You will find a new link at the beginning of the list. Click on it and see the application automatically redirecting you to your favourite pokemon's route!
Edit page