summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md
blob: 8bd9a8b0c59060f7c4bfaf90e10ae8452580f0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[//]: # (
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
)

Follow this steps to upgrade the `react-router-dom` library:

1. Clone the repository (note: this is a monorepository, it includes other libraries too):
   `git clone git@github.com:ReactTraining/react-router.git`

2. Install build dependencies:
   `cd react-router`
   `npm install`

3. Run a build :
   `npm run build`

4. Grab the UMD build of `react-router-dom`, which is located in `packages/react-router-dom/umd/react-router-dom.js` and copy it into Firefox source tree.

5. Edit `react-router-dom.js` and change `require('react')` for `require('resource://devtools/client/shared/vendor/react.js')`

6. Update the version below:

The current version is 4.3.1