I want to filter a specific value of an array in JavaScript to assign a custom p tag to each value of the array, I have this code, but it simply goes through all the values that I have stored in formName and the button is repeated.
For example, if I have in formName the value of paco, I can have Button to="/NameThreatPaco" and another for Miguel <Button to="/NameThreatMiguel" , etc.
{
respuesta && respuesta.map (p =>
<p>{p.data().formularioName} <Boton to="/NombreAmenaza">Amenaza</Boton></p>)
}