Last active
May 21, 2020 16:35
-
-
Save alejovdev/a78dbe7c6c7fbe6a17ba1adfad00fedb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useLayoutEffect, useRef } from 'react' | |
function MyComponent() { | |
useLayoutEffect(() => { | |
function onWindowResize() {} | |
return () => {} | |
}, []) | |
return <div>Hi There</div> | |
} | |
export default MyComponent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment