Question · JavaScript and React course · Module 3: State and Events

Asynchronous State Updates

Why are state updates in React asynchronous?

Answer options

  • Due to browser limitations
  • So React can batch multiple updates and optimize rendering
  • Because JavaScript is single-threaded
  • Due to Virtual DOM requirements

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