Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react hooks

function Checkbox() {
  const id = useId();
  return (
    <>
      <label htmlFor={id}>Do you like React?</label>
      <input id={id} type="checkbox" name="react"/>
    </>
  );
};
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #hooks
ADD COMMENT
Topic
Name
3+4 =