Update useSSR.md

seems that those arguments are copied from other hooks
This commit is contained in:
Dan
2021-03-10 15:38:42 +11:00
committed by GitHub
parent 8f3ffc0d21
commit 3b140b1727

View File

@ -18,7 +18,7 @@ const isDOMavailable = !!(
window.document.createElement window.document.createElement
); );
const useSSR = (callback, delay) => { const useSSR = () => {
const [inBrowser, setInBrowser] = React.useState(isDOMavailable); const [inBrowser, setInBrowser] = React.useState(isDOMavailable);
React.useEffect(() => { React.useEffect(() => {