Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Aug 8, 2024
1 parent 0984ba8 commit 5891572
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guides/data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ You might want to make an abstraction for checkboxes like this:

function SearchCheckbox({ name, value }) {
const [searchParams] = useSearchParams();
const paramsIncludeValue = searchParams.getAll(name).includes(value);
const paramsIncludeValue = searchParams
.getAll(name)
.includes(value);
const [checked, setChecked] = React.useState(
paramsIncludeValue
);
Expand Down

0 comments on commit 5891572

Please sign in to comment.