Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle checkbox react boolean

  // To be able to check the box with a boolean value,
  // you need to use the checked property instaed of value.

          <input
          type="checkbox"
          checked={completed}
          onChange={handleCompletedChange}
          />
 
PREVIOUS NEXT
Tagged: #toggle #checkbox #react #boolean
ADD COMMENT
Topic
Name
2+3 =