gitbook/api-reference/create-action.md
# createAction
Factory function for creating redux-fluent actions.
```typescript
import { createAction } from 'redux-fluent';
createAction(type, payloadCreator?, metaCreator?);
```
## Arguments
- `string` - the action type
- `(rawPayload: any, rawMeta: any, type: string) => Payload` - the payload creator
- `(rawPayload: any, rawMeta: any, type: string) => Meta` - the meta creator
## Returns
```typescript
(rawPayload, rawMeta) => FluxStandardAction
```
## Usage
```typescript
createAction('action-type', () => Payload, () => Meta);
```