Question · Vibe coding with Claude Code course · Module 10: TikTok clone
The recording address in an effect
Why does the editor create the recording address (createObjectURL) in an effect and not in the body of the component?
Answer options
- createObjectURL works only inside useEffect
- An effect renders faster than a component
- In the body of the component every render creates a new address that nobody revokes
- Without an effect the video has no sound
You can check the correct answer by solving this task in the CodeWorlds game.