I want a margin between my button (increment) and badge (bootstrap classes badge badge-primary). The tutorial I am using is outdated and I am having trouble finding it online. What is the proper margin class to use (tutorial said m-2)
render() {
//React.createElement('div')
return (
//in curly braces any js statement is valid
<div>
<span className="badge badge-primary m-2">
{this.formatCount()}
</span>
<button>Increment</button>
</div>
);
}
And to be clear, the issue is in this exact snippet.
<span className="badge badge-primary m-2">
Thank you for any responses, I am a beginner :)
m-2
(utility classes) is a feature of Bootstrap 4. getbootstrap.com/docs/4.3/utilities/spacing