First item is not selected on load with the strict mode of React 18
🐛 Bug Report
Tabs and SegmentedControl(preview) components without the hoisted model doesn't select first item on load correctly in the Strict Mode of React 18.
Items in the model state generates twice, first time it creates items with id starts from 0 and second time item id numbers start from items.length number. selectedIds filled only once and it selects the first item with id '0'. So on the second render there is no item with id '0'.
First render:

Second render

To Reproduce
https://codesandbox.io/s/tabs-in-strictmode-forked-c8z5fs?file=/src/index.tsx
Comment <StrictMode> to see how
Expected Behavior
The first item is selected on the load if there is no initial value provided.
Looks like this is still an issue in v13.
We should get a formal stance on React Strict Mode support.