Using const [projects, setProjects] = useState([])
I can update projects, but how can I push to projects at the first position?
I am using
setProjects([...projects, newData])
but that adds the newData at the end. I want it to be at the first position.