React Router v3 & v4 comparison demo
-
Install packages via
npm install
-
Build the project via
npm run build
-
Run server via
npm run start
-
Mount specific version of React Router to test.
- Open up
index.html
file. - Go to render().
- Inside of <div> tag, mount specific version of React-router.
mountVersion3()
- version 3.mountVersion4()
- version 4 (Declarative Routing).
- Save the file.
- Open up
-
Open browser and type
localhost:5000
-
Swap the mount in
index.html
to test both versions.
Thanks.
Here is the Power Point, that summarzied this demo. : https://goo.gl/OYemJ6 (Google Slide)