I have a plain markup code like below
<ListItemText title={details} />
My application is using typescript, and its giving error at title={details} like
Type 'string | null' is not assignable to type 'string | undefined error with TypeScript
How to correct it? What's the right way to handle this?
details = nullor you define it asconst details: string | null?detailscan't benull, only a string orundefined.