Projekt

Obecné

Profil

Stáhnout (1.01 KB) Statistiky
| Větev: | Revize:
1
# react-router-dom
2

    
3
DOM bindings for [React Router](https://reacttraining.com/react-router).
4

    
5
## Installation
6

    
7
Using [npm](https://www.npmjs.com/):
8

    
9
    $ npm install --save react-router-dom
10

    
11
Then with a module bundler like [webpack](https://webpack.github.io/), use as you would anything else:
12

    
13
```js
14
// using ES6 modules
15
import { BrowserRouter, Route, Link } from "react-router-dom";
16

    
17
// using CommonJS modules
18
const BrowserRouter = require("react-router-dom").BrowserRouter;
19
const Route = require("react-router-dom").Route;
20
const Link = require("react-router-dom").Link;
21
```
22

    
23
The UMD build is also available on [unpkg](https://unpkg.com):
24

    
25
```html
26
<script src="https://unpkg.com/react-router-dom/umd/react-router-dom.min.js"></script>
27
```
28

    
29
You can find the library on `window.ReactRouterDOM`.
30

    
31
## Issues
32

    
33
If you find a bug, please file an issue on [our issue tracker on GitHub](https://github.com/ReactTraining/react-router/issues).
34

    
35
## Credits
36

    
37
React Router is built and maintained by [React Training](https://reacttraining.com).
(8-8/19)