Get started with react-router-dom CDN
MIT licensed
React Router Dom is a popular library for implementing client-side routing in React applications.
Tags:- react
- router
- route
- routing
- history
- link
Stable version
Copied!
How to start using react-router-dom CDN
import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
function App() {
return (
<Router>
<nav>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/about">About</Link>
</li>
</ul>
</nav>
<hr />
<Route path="/" exact component={() => <div>Welcome to Home page</div>} />
<Route path="/about" component={() => <div>About Us</div>} />
</Router>
);
}
export default App;
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.0.0-experimental-00c655af
0.0.0-experimental-0141b5ec
0.0.0-experimental-078ef8de9
0.0.0-experimental-0db28b07
0.0.0-experimental-0f2dd78c
0.0.0-experimental-0f302655
0.0.0-experimental-10a6fd0e1
0.0.0-experimental-114cf0b7
0.0.0-experimental-12345
0.0.0-experimental-12346
0.0.0-experimental-13d6d438f
0.0.0-experimental-15961e14
0.0.0-experimental-178bc9ee
0.0.0-experimental-1e8b7a59
0.0.0-experimental-2272fa73
0.0.0-experimental-234a294e6
0.0.0-experimental-27337b0d6
0.0.0-experimental-35fa15e5
0.0.0-experimental-3a25d7f8a
0.0.0-experimental-3ba3024e
0.0.0-experimental-3ce8d73c7
0.0.0-experimental-3e5084cc
0.0.0-experimental-4286521e
0.0.0-experimental-42adf24c
0.0.0-experimental-432fcb2e
0.0.0-experimental-48058118
0.0.0-experimental-4841e12b
0.0.0-experimental-4996fbe2b
0.0.0-experimental-49eef6a01
0.0.0-experimental-4a8a492a
0.0.0-experimental-4db3c3744
0.0.0-experimental-4ed3f5da9
0.0.0-experimental-519a1b654
0.0.0-experimental-52e9b8eb3
0.0.0-experimental-5a6545bf7
0.0.0-experimental-5bedc168
0.0.0-experimental-5df42afed
0.0.0-experimental-5f08b33f
0.0.0-experimental-5f6f59a6
0.0.0-experimental-633882d6
0.0.0-experimental-63b6834e
0.0.0-experimental-65d6b8c9
0.0.0-experimental-7110596b
0.0.0-experimental-71108452
0.0.0-experimental-79e23be50
0.0.0-experimental-7b1bbb00
0.0.0-experimental-7b411a741
0.0.0-experimental-7c2094e9e
0.0.0-experimental-7d87ffb8c
0.0.0-experimental-7f486334
0.0.0-experimental-832a0ee6
0.0.0-experimental-8bb3ffdf
0.0.0-experimental-8f9ef191
0.0.0-experimental-91f2bf54
0.0.0-experimental-9463fb5e
0.0.0-experimental-9aebdc522
0.0.0-experimental-9c1812606
0.0.0-experimental-9c60e757e
0.0.0-experimental-9ffbba722
0.0.0-experimental-a077dc2d
0.0.0-experimental-a083564c1
0.0.0-experimental-a0888892
0.0.0-experimental-abead7ae1
0.0.0-experimental-acfea932
0.0.0-experimental-ad6954b7
0.0.0-experimental-add6f8aa
0.0.0-experimental-af76d50e
0.0.0-experimental-b162e81d
0.0.0-experimental-b24023f3
0.0.0-experimental-b3c9fc11b
0.0.0-experimental-b8437806
0.0.0-experimental-ba938b84
0.0.0-experimental-bc2c864b
0.0.0-experimental-c0856287f
0.0.0-experimental-c5cae38f3
0.0.0-experimental-c7dd3d3a
0.0.0-experimental-c93c722c
0.0.0-experimental-c9f8a7b2
0.0.0-experimental-cb25a21e1
0.0.0-experimental-cbcd94b7
0.0.0-experimental-ce5294fc
0.0.0-experimental-cec61865
0.0.0-experimental-cf9637ce
0.0.0-experimental-cffa549a1
0.0.0-experimental-compat.1
0.0.0-experimental-compat.2
0.0.0-experimental-compat.3
0.0.0-experimental-compat.4
0.0.0-experimental-compat.5
0.0.0-experimental-compat.6
0.0.0-experimental-d7bf770a8
0.0.0-experimental-d90c8fb3
0.0.0-experimental-dc307bdd5
0.0.0-experimental-dc8656c8
0.0.0-experimental-de419c3d
0.0.0-experimental-e0f088aa
0.0.0-experimental-e1311612e
0.0.0-experimental-e145538f2
0.0.0-experimental-e157216e3
0.0.0-experimental-e16afd9b7
0.0.0-experimental-e192105b
0.0.0-experimental-e7ce8959
0.0.0-experimental-e7e9ce6e
0.0.0-experimental-e960cf1a
0.0.0-experimental-ecd35cd60
0.0.0-experimental-edf416237
0.0.0-experimental-f3b593c3
0.0.0-experimental-f728258d
0.0.0-experimental-f7aa35148
0.0.0-experimental-f8cbf972
0.0.0-experimental-f92aa2e1
0.0.0-experimental-fbbd4fd81
0.0.0-experimental-ff38e9e6
0.0.0-experimental-ffd8c7d0
0.0.0-nightly-037474993-20240530
0.0.0-nightly-03808c631-20240725
0.0.0-nightly-058b57f14-20240621
0.0.0-nightly-05a94eca8-20240625
0.0.0-nightly-09b52e491-20240606
0.0.0-nightly-10a6fd0e1-20240531
0.0.0-nightly-128652c63-20240622
0.0.0-nightly-135d8d9b1-20240525
0.0.0-nightly-14a0face4-20240726
0.0.0-nightly-14e8e5d1a-20240801
0.0.0-nightly-183fdb88c-20240730
0.0.0-nightly-1974c2661-20240524
0.0.0-nightly-26cc9d914-20240904
0.0.0-nightly-3f25ab396-20240704
0.0.0-nightly-4901f05e2-20240711
0.0.0-nightly-4996fbe2b-20240629
0.0.0-nightly-520ab610e-20240703
0.0.0-nightly-5466640fc-20240510
0.0.0-nightly-59736e501-20240905
0.0.0-nightly-5aa77698d-20240828
0.0.0-nightly-626bc840a-20240731
0.0.0-nightly-65d3d6cde-20240628
0.0.0-nightly-73afcdc0d-20240523
0.0.0-nightly-854031618-20240819
0.0.0-nightly-90ebbf91d-20240718
0.0.0-nightly-934427247-20240717
0.0.0-nightly-96b441bdd-20240511
0.0.0-nightly-9bf91e47c-20240822
0.0.0-nightly-a5f191b5e-20240820
0.0.0-nightly-a9e1d47b6-20240619
0.0.0-nightly-ac5b36cb0-20240626
0.0.0-nightly-afef30ced-20240729
0.0.0-nightly-b2c8f9c8a-20240522
0.0.0-nightly-b604032d8-20240907
0.0.0-nightly-bad24c173-20240604
0.0.0-nightly-bb58afdfd-20240520
0.0.0-nightly-bf23aaf61-20240802
0.0.0-nightly-c34cbeb8b-20240823
0.0.0-nightly-c3d95f026-20240906
0.0.0-nightly-c4c48afc1-20240713
0.0.0-nightly-c72e6df91-20240807
0.0.0-nightly-c846a2e1e-20240627
0.0.0-nightly-d4127aa37-20240521
0.0.0-nightly-d5ad0613b-20240620
0.0.0-nightly-dfd2d1494-20240716
0.0.0-nightly-e3c67ede3-20240815
0.0.0-nightly-e85f691d1-20240816
0.0.0-nightly-ec37db8f4-20240702
0.0.0-nightly-f47048541-20240813
4.0.0
4.0.0-beta.1
4.0.0-beta.2
4.0.0-beta.3
4.0.0-beta.4
4.0.0-beta.5
4.0.0-beta.6
4.0.0-beta.7
4.0.0-beta.8
4.1.0
4.1.1
4.1.2
4.2.0
4.2.1
4.2.2
4.3.0
4.3.0-rc.1
4.3.0-rc.2
4.3.0-rc.3
4.3.1
4.4.0
4.4.0-alpha.0
4.4.0-alpha.1
4.4.0-beta.0
4.4.0-beta.1
4.4.0-beta.2
4.4.0-beta.3
4.4.0-beta.4
4.4.0-beta.5
4.4.0-beta.6
4.4.0-beta.7
4.4.0-beta.8
5.0.0
5.0.1
5.1.0
5.1.1
5.1.2
5.2.0
5.2.1
5.3.0
5.3.1
5.3.2
5.3.3
5.3.4
6.0.0
6.0.0-alpha.5
6.0.0-beta.0
6.0.0-beta.1
6.0.0-beta.2
6.0.0-beta.3
6.0.0-beta.4
6.0.0-beta.5
6.0.0-beta.6
6.0.0-beta.7
6.0.0-beta.8
6.0.1
6.0.2
6.1.0
6.1.1
6.10.0
6.10.0-pre.0
6.10.0-pre.1
6.10.0-pre.2
6.11.0
6.11.0-pre.0
6.11.0-pre.1
6.11.0-pre.2
6.11.1
6.11.1-pre.0
6.11.2
6.11.2-pre.0
6.12.0
6.12.0-pre.0
6.12.0-pre.1
6.12.1
6.12.1-pre.0
6.12.2-pre.0
6.13.0
6.13.0-pre.1
6.14.0
6.14.0-pre.0
6.14.0-pre.1
6.14.1
6.14.1-pre.0
6.14.1-pre.1
6.14.2
6.14.2-pre.0
6.14.2-pre.1
6.15.0
6.15.0-pre.0
6.16.0
6.16.0-pre.0
6.16.0-pre.1
6.16.0-pre.2
6.17.0
6.17.0-pre.0
6.17.0-pre.1
6.17.0-pre.2
6.18.0
6.18.0-pre.0
6.18.0-pre.1
6.19.0
6.19.0-pre.0
6.2.0
6.2.1
6.2.2
6.2.2-pre.0
6.20.0
6.20.0-pre.0
6.20.1
6.20.1-pre.0
6.21.0
6.21.0-pre.0
6.21.0-pre.1
6.21.0-pre.2
6.21.0-pre.3
6.21.1
6.21.1-pre.0
6.21.2
6.21.2-pre.0
6.21.3
6.21.3-pre.0
6.22.0
6.22.0-pre.0
6.22.1
6.22.1-pre.0
6.22.2
6.22.2-pre.0
6.22.3
6.22.3-pre.0
6.23.0
6.23.0-pre.0
6.23.0-pre.1
6.23.1
6.23.1-pre.0
6.23.1-pre.1
6.24.0
6.24.0-pre.0
6.24.1
6.24.1-pre.0
6.25.0
6.25.0-pre.0
6.25.1
6.25.1-pre.0
6.26.0
6.26.0-pre.0
6.26.0-pre.1
6.26.1
6.26.1-pre.0
*** 6.26.2
6.26.2-pre.0
6.3.0
6.4.0
6.4.0-pre.0
6.4.0-pre.10
6.4.0-pre.11
6.4.0-pre.12
6.4.0-pre.13
6.4.0-pre.14
6.4.0-pre.15
6.4.0-pre.2
6.4.0-pre.3
6.4.0-pre.4
6.4.0-pre.5
6.4.0-pre.6
6.4.0-pre.7
6.4.0-pre.8
6.4.0-pre.9
6.4.1
6.4.1-pre.0
6.4.2
6.4.2-pre.0
6.4.2-pre.1
6.4.3
6.4.3-pre.0
6.4.3-pre.1
6.4.3-pre.2
6.4.4
6.4.4-pre.0
6.4.4-pre.1
6.4.4-pre.2
6.4.5
6.4.5-pre.0
6.4.5-pre.1
6.4.5-pre.2
6.5.0
6.5.0-pre.0
6.5.0-pre.1
6.6.0
6.6.0-pre.0
6.6.1
6.6.1-pre.0
6.6.1-pre.1
6.6.2
6.6.2-pre.0
6.6.3-pre.0
6.7.0
6.7.0-pre.1
6.7.0-pre.2
6.7.0-pre.3
6.7.0-pre.4
6.7.0-pre.5
6.7.1-pre.0
6.8.0
6.8.0-pre.1
6.8.1
6.8.1-pre.0
6.8.2
6.8.2-pre.0
6.8.2-pre.1
6.8.2-pre.2
6.8.2-pre.3
6.9.0
6.9.0-pre.0