In plain html the following results in a space between the two buttons, but in React it doesn't:
<button> Button 1 </button>
<button> Button 2 </button>
I'm having to resort to the following to get a space.
<button> Button 1 </button>
{' '}
<button> Button 2 </button>
This is unexpected. And before anyone gives CSS solutions, note that the following also results in no spaces between the output:
{'firstname'}
{'lastname'}
Gives:
firstnamelastname
What is the normal way to have spaces (ideally the HTML does it)?
I've also found that this type of interpolation can work, but feels awful to me:
{`
${this.date()}
-
${this.verb()} @
${this.time()}
-
flight
${this.props.flight.airline.codeIcao}
${this.props.flight.number}
-
${this.props.flight.airport.codeIcao}
`}