Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react scroll to top

const scrollTop = () =>{   window.scrollTo({top: 0, behavior: 'smooth'});};
Source by betterprogramming.pub #
 
PREVIOUS NEXT
Tagged: #react #scroll #top
ADD COMMENT
Topic
Name
9+8 =