Question · Next.js course · Module 6: Forms and Server Actions

Form Elements in React

In React, an <input> element in a form is controlled when:

Answer options

  • It is placed inside a <form> element
  • It has the attribute type="text"
  • Its value is managed by React state (useState or register)
  • It is rendered on the server side

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