React does not rerender on updated state of nested array – Reactjs
I have an array of objects like so: const [categories, setCategories] = React.useState([ { id: 1, title: 'Top Picks', subTitle: "Today's hottest stuff", images: [], searchQuery: 'shoes', }, ...]); Which I update with values in useEffect once like so: React.useEffect(()…