I bet the hardware will be working 10 years from now as well. Apples tends to use great hardware even if it is sometimes a little underperformative compared to PCs at the same price point.
I hesitate to say such a thing given the keyboard fiasco and the time nvidia sold them a batch of GPUs that got so hot they desoldered themselves.
I have a MacBook from 2011 that works perfectly well (almost as good as the day I got it, save the battery and a few bits of corrosion on the edge of the front where your palms rest). I’ve definitely cycled through other laptops much faster than that.