As someone who has a number of short stints on his resume, I usually go with, "There's a big difference between ten years of experience, and one year of experience repeated ten times. I have experience with a wide variety of frameworks and architectures. I've done real work in both front-end and back-end codebases. I've worked in Windows environments and Linux environments. I've even done some DBA work. I can bring knowledge of a wide variety of best practices to bear on any problem that I'll encounter at this current role."
The other thing I've found is that the companies that make a really big deal about "job hopping" and "employee loyalty" aren't really ones that you want to work for anyway. They're paranoid about employee loyalty for a reason, and rather than look at their own management to see why employees are leaving after short stints at that firm, they blame the employees, usually with some absurd generalizations about "millenials" or "gen z".