This:
<Button disabled>
is short for this:
<Button disabled={true}>
The curly brackets pop you back into plain javascript, and you can put any javascript expression in there. Assuming this.state.enClick
is a boolean, you can conditionally set disabled
like this:
<Button disabled={this.state.enClick}>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…