---
title: "React Router 7 middleware now supported | Netlify Changelog"
description: "Get the latest updates on Netlify products and features to meet your developer needs."
source: "https://www.netlify.com/changelog/react-router-7-middleware-now-supported/"
last_updated: "2026-07-06T13:59:54.000Z"
---
React Router 7 [recently launched its long-awaited middleware feature](https://remix.run/blog/middleware), stable since v7.9.0.

Middleware is now fully supported on Netlify.

## How to use it

Ensure you’re on version 7.9.0 or later of React Router:

```
npm install react-router@latest @react-router/node@latest @react-router/dev@latest
```

Upgrade to version 2 of the Netlify React Router plugin:

```
npm install @netlify/vite-plugin-react-router@latest
```

After that, middleware works out of the box.

## Next steps

-   [Check out the full React Router middleware docs](https://reactrouter.com/how-to/middleware)
-   [Create a new React Router 7 project with our updated template](https://github.com/netlify/react-router-template/)
-   [Read the Netlify React Router plugin docs](https://github.com/netlify/remix-compute/tree/main/packages/vite-plugin-react-router#react-router-adapter-for-netlify) for more on loader/action context and to access type-safe [Netlify context](https://docs.netlify.com/build/functions/api/#netlify-specific-context-object) in middleware