Put in order · JavaScript and React course · Module 5: useEffect and Custom Hooks
Custom Hook Declaration
Arrange the custom hook declaration elements from left to right:
Items to put in order
- useWindowSize
- ()
- { return { width, height } }
- function
You can check the correct answer by solving this task in the CodeWorlds game.