Question · JavaScript and React course · Module 13: Testing React
renderHook - testing hooks
What does renderHook from React Testing Library do?
Answer options
- It renders the hook inside a test component, so you do not have to write your own component
- It generates tests for the hook from its TypeScript types
- It converts a class component into a function hook
- It creates a hook automatically from a natural language description
You can check the correct answer by solving this task in the CodeWorlds game.