React Flashcards
1
Q
React Router
A
JS framework that manages routing in React apps.
Allows navigating without refreshing the page
- Handles routing and navigation
2
Q
React
A
JS library used to build user interfaces (UI) for websites and apps
- Has a dedicated framework called Create React App that includes tools for file structuring
- Doesn’t come in with built in support for routing so need to use react router
3
Q
useNavigate
A
A hook that allows you to programmatically navigate within your app.
It returns a function that you can call to change the current route
4
Q
useMatch
A
determines whether a given URL matches a specific route defined in app
- it returns match data about the route including params if the URL matches.