Skip to content
Advertisement

Add line break between buttons generated in react loop

I a trying to add a line break after a button that is generated in a react loop. I’ve tried adding elements but that has not worked:

JavaScript

There should be a space between the buttons. Currently they are stacked without spacing.enter image description here

Advertisement

Answer

This approach worked, but only by adding margin-bottom:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement