Follow this steps to upgrade the react-router-dom
library:
-
Clone the repository (note: this is a monorepository, it includes other libraries too):
git clone git@github.com:ReactTraining/react-router.git
-
Install build dependencies:
cd react-router
npm install
-
Run a build :
npm run build
-
Grab the UMD build of
react-router-dom
, which is located inpackages/react-router-dom/umd/react-router-dom.js
and copy it into Firefox source tree. -
Edit
react-router-dom.js
and changerequire('react')
forrequire('resource://devtools/client/shared/vendor/react.js')
-
Update the version below:
The current version is 4.3.1