Tell us what’s happening:
I’m not quite sure what I am doing wrong here. The includes method supposedly returns a boolean right? So in theory checked should be getting a true/false value based on whether there is power in powersOptions… Am I missing something?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: index.jsx */
{/* User Editable Region */}
<input
type='checkbox'
value={power}
checked={powersOptions.includes(power)}
onChange={handlePowersChange}
/>
{/* User Editable Region */}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0
Challenge Information:
Build a Superhero Application Form - Step 16
https://www.freecodecamp.org/learn/full-stack-developer/workshop-superhero-application-form/step-16