Spinach cooks very quickly, so it's best to add it into hot pasta sauce at the very end. The heat from the sauce will wilt the spinach, and it won't get overcooked.