const { useState } = React;
export const ColorPicker = () => {
const[color , setColor] = useState(‘#ffffff’)
function handlePickColor(e){
console.log(e.target.value);
setColor(e.target.value);
}
return(
<div id="color-picker-container" style = {{backgroundColor : color}}>
<input
id="color-input"
value= {color}
color = {color}
type = "color"
onChange = {handlePickColor} />
</div>
)
}; this is my code but this is keep failing test 13 and test 13 is The initial value of your #color-input should be managed by your useState hook. where i am doing wrong
