We think it's best to cook the spinach before putting it in the lasagna. It's because raw spinach releases a lot of water when cooked, making your lasagna soggy. If you're thawing frozen spinach, be sure to remove as much water as possible before including it in the batter.