I am trying to print data using array data
and data1
.
I have done this
{data?.data1?.map((ac1: any) => {
<component prop1={data} prop2={data1}>
})}
this will only work if data
& data1
exist. I want to allow with any one must exist.
How to achieve that.