Can anyone explain me about react router dom? #123585
Replies: 3 comments
-
React Router DOM is a popular library for routing in React applications. It enables navigation among different components, managing URLs, and handling dynamic routing based on the URL path. Here's a breakdown of its key features and functionality: Declarative Routing: React Router DOM allows you to define your application's routing declaratively using JSX syntax. You specify which component should render based on the URL. Components: The library provides several key components: BrowserRouter: This is a component that uses HTML5 history API to keep your UI in sync with the URL. Nested Routes: You can nest routes within components to create complex UI structures. Child routes will render within the parent component's rendered output. History Management: React Router DOM handles browser history seamlessly using HTML5 history API. It enables features like back and forward navigation, URL changes, and browser history manipulation. |
Beta Was this translation helpful? Give feedback.
-
import React from 'react'; const Home = () => Home Page;const About = () => About Page;const Contact = () => Contact Us;const App = () => {
< |
Beta Was this translation helpful? Give feedback.
-
Hi @RafeedMohammad11 & @AsibHasanRiyad, thanks for wanting to participate in GitHub Discussions. Please note: We made the decision to disable the ability to earn Achievements in our Community in order to discourage users from participating in coordinated or inauthentic activity like rapid questions and answers in order to earn badges. You can learn more about this decision in our announcement post here Achievements will no longer be available in the Community. Note that GitHub's Acceptable Use Policies prohibits coordinated or inauthentic activity like rapid questions and answers. As a result, we'll be unmarking the answer and locking this, and other related posts. Any future violations may result in a temporary or indefinite block from the Community. Thanks for understanding. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I Want to know about react router dom.
Beta Was this translation helpful? Give feedback.
All reactions