Question · JavaScript and React course · Module 15: Patterns and Architecture

Purpose of Event-Driven Architecture

What is the main purpose of Event-Driven Architecture in a React application?

Answer options

  • Replacing React state management with a DOM event-based system
  • Enabling loose communication between components without direct dependencies and without a common ancestor
  • Automatically caching data fetched from an API in an event cache
  • Eliminating the need for useEffect in functional components

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