Skip to content

useRoute hook#55

Open
lMahesvara wants to merge 2 commits into
novajslabs:mainfrom
lMahesvara:main
Open

useRoute hook#55
lMahesvara wants to merge 2 commits into
novajslabs:mainfrom
lMahesvara:main

Conversation

@lMahesvara
Copy link
Copy Markdown

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
Copy Markdown
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!

Comment thread src/App.tsx
Copy link
Copy Markdown
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;

Comment thread src/App.jsx
Copy link
Copy Markdown
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