Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 163 Bytes
import React, { useRef, useEffect, useState } from 'react';
export default function useScrollToTop() {
useEffect(() => {
window.scrollTo(0, 0);
}, []);
}
You can’t perform that action at this time.