Account Deleted
Hello. To get the initial data, try doing the following:
- set the initial state to null
- add
useEffect(() => { fetchAdvice() }, [])
react.dev - change
fetch(url)
tofetch(url, {cache: "no-cache"})
Regarding the button effect, if you're referring to the design, you can achieve it by using the box-shadow CSS property. To add the box-shadow effect to the button on hover, you can use the following code: .btnDice:hover { box-shadow: 0 0 20px hsl(150, 100%, 66%); }
@WerSzpe
Posted
@at33v Thank you!
Account Deleted
@WerSzpe Hello, regarding GitHub Pages, please check the settings of your repository. I managed to deploy your repository, and here's the link to it, the live website, and a screenshot of my settings.
@WerSzpe
Posted
@at33v It all works now. Thank you once again, I learned quite a lot!
Account Deleted
@WerSzpe You're welcome! If you have any more questions or need further assistance in the future, feel free to ask. Keep up the great work!