React is driving me up the wall! (Not really, it’s fun to discover something new
)
I’m struggling with figuring out how to code a button that is disabled in React though.
Here’s the code I tried:
<button className="fa fa-minus" onClick={this.props.decSession} disable/>
which unfortunately did nothing, so then I also tried setting disable=‘true’ but that also didn’t work.
I am failing to find any special reason in the React docs for this failure.
if you’d like to help me investigate, here’s my codepen, and thanks in advance!
Edit: gah! ‘disabled’ not ‘disable’!!!