Is XAMPP enough for local development?

I’m a beginner and creating a shopping website using XAMPP but some people tell me to use Docker or some things like that but what’s the difference between these? You can just simply install Apache, PHP and MySQL all at once with XAMPP but is it not good?