Can somebody tell me how to make a button and when I clicked it to send me to the bottom of the page with REACT.JS.
Thanks
>Solution :
You can use the window.scrollTo method scrollTo
const scrollToBottom = () => {
const windowHeight = window.innerHeight
window.scrollTo(0, windowHeight)
}
<button onClick={scrollToBottom}>Scroll</button>