I have an array of strings that I want to render in a way that's one after the other with arrows in between as separators.
const folders = ["Folder 1", "Folder 2"]
So I tried the following code :
<div style={{display: "flex"}}>
{folders.map(folder => (
<p><i className='fa fa-folder'></i> {folder} <i className="fa fa-chevron-right"></i></p>
))}
</div>
What this does it put that arrow icon after every folder but i don't want it to put that arrow after the last folder. How do I fix?