Host on cdnjs
It would be awesome if this could be hosted on cdnjs
+1 for a standalone build of the library.
Check out bower install react-router-component in the meantime which exports ReactRouter global symbol and is AMD module.
+1 for standalone.
I tried installing bower and doing the bower install but there doesn't seem to be any file it produces that I can just do a script src into my page (seems to need require.js or something?).
The Readme on the project teases us with a "Its size is about 3.5kb gzipped." but no such minified drop-in-and-go file seems to exist.
+1 Edit: I actually did make the file myself. For the project/environment I am working on though, I do not use npm or git (I use NuGet and TFS). In order to use this package, I had to install node, install git, install bower, build, and then pull the file over to my solution. If it was gzipped and hosted, I could have have done this a little easier. I would even +1 for a NuGet version.
You can create the file yourself:
git clone [email protected]:andreypopp/react-router-component-bower.git && cd react-router-component-bower
npm install
# Update submodules
git submodule init
git submodule update
cd src
# Optional; check out HEAD if you want 0.19.0
# git checkout master
npm install
cd ..
# Build
make react-router-component.min.js
Seeing the last comment is from 2014, does this no longer work?
What are ways to compile react-router-component in a standalone JS file?
See commit: 3df703d01 The standalone build was removed a little over a year ago.