@md5dalton
Posted
Hi thereπ
The idea is to generate a new piece of advice by clicking the dice icon so you don't need to use a timer. So you just attach a click listener on the dice icon like so:
<div className='quote-dice' onClick={() => getAdvice()}>...</div>
You can even go further by handling loading and error states. π
Marked as helpful