summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md')
-rw-r--r--devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md b/devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md
new file mode 100644
index 0000000000..8bd9a8b0c5
--- /dev/null
+++ b/devtools/client/shared/vendor/REACT_ROUTER_DOM_UPGRADING.md
@@ -0,0 +1,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