Have a useState hook like so:
const [array, updateArray] = useState([])
I know you can add items to the array using a spread operator like so.. (where item is whats being added)
updateArray(array => [...array, item])
how would you remove something from this array? Assuming you have the name of that array item. (remove based off value not index)
Thank you!