I am pretty new to React but with some Angular attempts before.
I was actually trying to implement a component which accepts a data model or object as parameter
Looks like this
import react from 'react'
interface SmbListItem{
index:number;
primary:string;
secondary:string;
}
export default function SmbList({props}:SmbListItem){
return(
<>
</>
);
}
But its saying props does not exists on SmbListItem
What I did wrong?
Also requesting a suggestion on interface or types are the best option in this situation