Question · JavaScript and React course · Module 5: useEffect and Custom Hooks
Creating Custom Hooks
What is the main naming convention for custom hooks in React?
Answer options
- The name must start with 'use' (e.g., useWindowSize, useFetch)
- The name must start with 'hook' (e.g., hookWindowSize)
- The name must end with 'Hook' (e.g., windowSizeHook)
- There are no naming requirements for custom hooks
You can check the correct answer by solving this task in the CodeWorlds game.