# react-router-express

> React Router Express Location - Server Side Rendering (isomorphic)

Latest version **1.0.0** (published 2015-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-router-express
pnpm add react-router-express
yarn add react-router-express
bun add react-router-express
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-16 |
| First published | 2015-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Eduardo Nunes |
| Maintainers | esnunes |
| Keywords | react-router, express, isomorphic, react, isomorphism |

## Links

- npm: https://www.npmjs.com/package/react-router-express
- Repository: git@github.com:esnunes/react-router-express
- Homepage: https://github.com/esnunes/react-router-express
- Issues: https://github.com/esnunes/react-router-express/issues
- npm.io page: https://npm.io/package/react-router-express

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-03-16

## README

# React Router Express Location - Server Side Rendering (isomorphic)


```javascript
// server.js

import express from 'express';
import ExpressLocation from 'express-location';
import ReactRouter from 'react-router';

import routes from './routes';


const server = express();

server.use(function (req, res, next) {
  const location = new ExpressLocation(req.url, res);

  ReactRouter.run(routes, location, (Handler, state) => {
    if (location.redirect()) return;
    
    // ...
  });
})
```

---
_Source: https://npm.io/package/react-router-express · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
