I am new to react and using .map() to list some items with a
tag appended to it. The issue that I am facing is when i append a
tag it doesn't do a line break. It just shows
next to every store. Below is my code i am using. Any help would be really appreicated.
return <div> {stores.map((store) => store + "<br>")} </div>
<>{store}<br/></>, otherwise you have to "dangerously set inner HTML".mapcallback.