Skip to content

Conversation

@lMahesvara
Copy link

This pull request introduces a custom hook useRoute to facilitate handling and tracking of the current route. The hook returns an object containing the current route and a function to navigate to a new route.

Copy link
Member

@dlcastillop dlcastillop left a comment

Choose a reason for hiding this comment

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

Great implementation. Just resolve the comments I left you to merge your pr. Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

Don´t modify this file because it is for testing only. Leave it like this:

const AppTs = () => {
  return <p>Test your hook here</p>;
};

export default AppTs;

Copy link
Member

Choose a reason for hiding this comment

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

Don´t modify this file because it is for testing only. Leave it like this:

const AppJs = () => {
  return <p>Test your hook here</p>;
};

export default AppJs;

@dlcastillop dlcastillop linked an issue May 8, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook to get current route

2 participants