Skip to content

Conversation

@Nachomontoya
Copy link

No description provided.

Copy link

@MiguelPerezMartinez MiguelPerezMartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfecto, gran trabajo Nacho!

Comment on lines +13 to +27
<Switch>
<Route
path={`${LOCATION}/:locationId`}
render={(routeProps) => <Location {...routeProps} key={Date.now()} />}
/>
<Route
path={`${CHARACTER}/:characterId`}
render={(routeProps) => <Character {...routeProps} />}
/>
<Route
path={`${EPISODE}/:episodeId`}
render={(routeProps) => <Episode {...routeProps} />}
/>
<Route path={HOME} render={(routeProps) => <Home {...routeProps} />} />
</Switch>
Copy link

@MiguelPerezMartinez MiguelPerezMartinez Jun 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uso de exact es mas recomendable a la hora de tener mas Route y no tener que estar atento a el orden que los colocamos. Igualmente asi esta perfecto tambien.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants