In JSX, boolean attributes like disabled can be set by using the expression ________.

  • An empty string
  • FALSE
  • TRUE
  • The attribute name
In JSX, boolean attributes like "disabled" can be set by using the expression "true." For example, to disable an HTML input element in JSX, you would write disabled={true}. This sets the "disabled" attribute to true, indicating that the input should be disabled. You can also omit the value, which is equivalent to setting it to true, like this: disabled.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *