To cook spinach, start by rinsing it thoroughly and removing any tough stems. Then, heat a pan with olive oil or butter, add chopped garlic, and sauté the spinach until wilted. Season with salt, pepper, and a squeeze of lemon juice.