<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@datashaper/react](./react.md) &gt; [useStepOutputs](./react.usestepoutputs.md)

## useStepOutputs() function

create a parallel array of output names for the steps

<b>Signature:</b>

```typescript
export declare function useStepOutputs(workflow: Workflow, defaultOutputName?: (index: number) => string): Array<string | undefined>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  workflow | Workflow | The workflow instance |
|  defaultOutputName | (index: number) =&gt; string | <i>(Optional)</i> |

<b>Returns:</b>

Array&lt;string \| undefined&gt;


