score:1

Accepted answer
setState((state) => ({
                ...state,
                projectList: sorted
            }));

Related Query

More Query from same tag