I am using ternary operator and I need to render a component. Here is what I have tried:
{count: item.count ? item.count + <Chip/> : '❂'}
{count: item.count ? item.count + `${<Chip/>}` : '❂'}
{count: item.count ? item.count + (<Chip/>) : '❂'}
Instead of rendering the component, I get [object Object]
item.countwithChipcomponent?