I have tried to pass array of data from parent component to child component, but in the child component I'm not getting the array of data.could you please correct me where I'm doing mistakes.
In parent component I'm getting the data from service:
var tableNames = [DataService.getTableNames()];
passing the array to the child component:
<DataQueryInterface tableNames={[tableNames]}/>
In the child component I'm trying to destructuring like this:
var tableNames = [props.tableNames]
could you please help me with this...