When you're passing giveLumen()
with parenthesis you're calling the function
<button onClick= {giveLumen()} className="lumens">
In the first time, I think you should remove them. So that you'll pass the reference to you're function
<button onClick= {giveLumen} className="lumens">
// You can also write it as following (almost the same)
<button onClick= {() => giveLumen()} className="lumens">
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…