> For the complete documentation index, see [llms.txt](https://rangle.gitbook.io/redux-beacon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rangle.gitbook.io/redux-beacon/index-1/create-middleware.md).

# createMiddleware

## Syntax

```javascript
createMiddleware([eventsMap | eventsMapper], target[, extensions]);
```

### Parameters

* `eventsMap | eventsMapper`: [eventsMap](/redux-beacon/index-1/events-map.md) | [eventsMapper](/redux-beacon/index-1/events-mapper.md)
* `target`: [target](/redux-beacon/index.md)
* `extensions` *(optional)*: [extensions](/redux-beacon/index-2.md).

### Return value

* [Redux middleware](http://redux.js.org/docs/advanced/Middleware.html#the-final-approach)

## Usage

* [Getting Started](/redux-beacon/getting-started-redux-users.md)
* [Examples & Recipes](https://github.com/rangle/redux-beacon/tree/483884ebd74e2aab15ab9e350894e5fc68b4e309/docs/recipes/index.md)
