What is the WordPress Interactivity API’s `wp-context` directive and how does it enable component-scoped state?

WordPress Hard
Select the correct answer: Single Choice

Key points

  • `wp-context` creates isolated state for each block instance
  • Child elements access and modify this state using other directives
  • Prevents pollution of global state
  • Enhances component reusability

Ready to go further?