Tell us what’s happening:
i dont understand how to use the includes method on the powersOptions to set the checked attribute of the input element
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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a Superhero Application Form - Step 16