Question · JavaScript and React course · Module 8: Advanced React Patterns
Introduction: Custom Hooks - Composition Principle
What is the key principle of custom hook composition?
Answer options
- A custom hook must inherit from the React.Hook class
- A custom hook cannot call React's built-in hooks
- A custom hook can only be called once in a component
- A custom hook can call other hooks, including other custom hooks
You can check the correct answer by solving this task in the CodeWorlds game.