I have an array of Objects which includes an nested array ,
[
{
code:1234,
componentData:[{
title:'B123456',
Dates:'02-07-2021'
}]
}
]
Now i want to populate these values as option in dropdown of auto complete component using Material UI and Reactjs. I went through the docs and every example has a simple array of objects, which is not what I'm looking for. I'm trying to figure out how to show both title and Dates in the dropdown options of autocomplete.
And then try to fire the onchange function and get both title and Dates values on Select by the user.
https://codesandbox.io/s/material-demo-forked-8k9hu?file=/demo.js Code Sandbox Link : Code
