# createMiddleware

## Syntax

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

### Parameters

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

### Return value

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

## Usage

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