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

EDA vs Context API vs Props

Which characteristic DISTINGUISHES Event-Driven Architecture from Context API in React?

Answer options

  • EDA requires class components, while Context only works with functional ones
  • EDA enables communication between any components without a common ancestor and updates only subscribers
  • Context API is faster because it doesn't use event listeners
  • EDA automatically memoizes values, while Context requires useMemo

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