'Nesting an Array in Storybook React

I'm struggling to pass values to my nested array in Storybook js. What's the proper way to write this?

The component:

{options.map(item => {
    return <div id={item.id}>
            <div>…</div>
            <div className="ml-2">
                {actions.map(subitem => {
                    return <Button
                            id={subitem.id}
                        />
                })}
            </div>
    </div>
})}

The story:

Basics.args = {
    options: [
        {
            id: 'a',
            actions: [
                {
                  id: ‘b’,
                },
            ]
        },


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source