Click in order · JavaScript and React course · Module 8: Advanced React Patterns

Custom Hooks

Arrange the declaration of a custom hook in React:

Items to click

  • use
  • }
  • () {
  • WindowSize
  • function
  • return { width, height };

You can check the correct answer by solving this task in the CodeWorlds game.