Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useRoute hook #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

useRoute hook #55

wants to merge 2 commits into from

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
Collaborator

@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
Collaborator

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
Collaborator

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