Skip to content

Commit

Permalink
Update CheckboxWithLabel.js
Browse files Browse the repository at this point in the history
fix for eslint
  • Loading branch information
cw1997 authored Jun 5, 2023
1 parent f2a56c1 commit fa3307c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react-testing-library/CheckboxWithLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function CheckboxWithLabel({labelOn, labelOff}) {
const [isChecked, setIsChecked] = useState(false);

const onChange = () => {
setIsChecked((draft) => !draft);
setIsChecked(draft => !draft);
};

return (
Expand Down

0 comments on commit fa3307c

Please sign in to comment.