Next.js Discord

Discord Forum

How to update search params with mui multi checkbox ?

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
I'm implementing jobs page which has list of pages that I want to filter them by checkbox's but I can't update the searchparams with more than one value

1 Reply

English Lop
I would expect adding something similar to this on each checkbox might be the solution?

I'm still new to all this, but maybe it might lead you to an answer doing a little searching 🙂

page/component
const [query, setQuery] = useState('');

input
value={query} onChange={ e => setQuery(e.target.value) }