Open
Description
I added a checkbox to your Product Details tab. I check the box on. I then switch to another tab and then back again. The checkbox is now unchecked.
export function ProductGeneralTab() {
const [checked, setChecked] = useState(false);
const handleChange = () => {
setChecked(!checked);
};
return (
<div>
<div>
General
</div>
<div>
<label>
<input
type="checkbox"
checked={checked}
onChange={handleChange} />
My Value
</label>
<p>Is "My Value" checked? {checked.toString()}</p>
</div>
</div>
);
}
Metadata
Metadata
Assignees
Labels
No labels