Registry / web-framework / react-router-es3

react-router-es3

JSON →
library2.6.1-rc0jsnpmunverified

A complete routing library for React that keeps your UI in sync with the URL. Version 2.6.1-rc0 (JS-only release, no TypeScript types). Provides simple API with features like lazy code loading, dynamic route matching, and location transition handling. This package is an ES3-compatible fork of react-router v2, targeting older environments (e.g., IE8). Always use the official react-router package for modern development.

npm install react-router-es3
INSTALL
IMPORT
SIG · REACT-ROUTER-ES3
R
react-router-es3
web-frameworkjavascriptv2.6.1-rc0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
import { Router } from 'react-router-es3'
import Router from 'react-router-es3'
Named export, not default. CommonJS: const Router = require('react-router-es3').Router
Route
import { Route } from 'react-router-es3'
const Route = require('react-router-es3/Route')
Named export from package root. Do not use subpath imports.
browserHistory
import { browserHistory } from 'react-router-es3'
import { browserHistory } from 'react-router'
Use 'react-router-es3' instead of 'react-router' for this fork.

Basic setup with two routes using browserHistory.

import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Link, browserHistory } from 'react-router-es3'; const Home = () => <h1>Home</h1>; const About = () => <h1>About</h1>; render( <Router history={browserHistory}> <Route path="/" component={Home} /> <Route path="/about" component={About} /> </Router>, document.getElementById('root') );
Debug
Known issues
breakingThis is an ES3-compatible fork of react-router v2. It is not the official react-router package.
fix
Use the official react-router package for modern development (v3+).
affects: >=0.0.0
gotchaNo TypeScript type definitions. Importing from 'react-router-es3' will cause TS errors.
fix
Install @types/react-router for v2 types, but they may not match perfectly.
affects: >=0.0.0
breakingVersion 2.6.1-rc0 is a release candidate; API may change before stable.
fix
Use a stable version if available.
affects: 2.6.1-rc0
Errors
Common errors & fixes
Cannot find module 'react-router-es3'
Package not installed or module name misspelled.
fix
Run 'npm install react-router-es3' and ensure import path is correct.
'React' is not defined
Missing React import.
fix
Add 'import React from 'react';' at the top of your file.
TypeError: Cannot read property 'path' of undefined
Route component not rendered correctly; missing parent Route.
fix
Ensure all routes are children of a Router component with proper nesting.
Upgrade
Version history
2.6.1-rc0latest on npm
Audit
Dependencies
reactrequiredPeer dependency for React components.
Agent activity
4 hits · last 30 days
node
4
Resources
react-router-es3 — npm install react-router-es3 · libregistry