I'm getting extra empty bullet using this global function. I want to next line the strings from the object and layout or return in bulleted
Here's the data
{
target: '● Participates in technical discussions, suggesting possible options for designs and best practices ● Answers customer inquiries promptly',
}
Here's my code
export function formatString(text) {
const newText = text.split('●').map(str => <p>● {str}</p>);
return newText;
}
Applying it to another component and passing the parameter
formatString(target)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…