The US economy (and much of the rest of the world) actually went into recession after ww1. Then after ww2 you have to consider that the US was one of the very few industrialized countries that didn’t get its cities blown up. The war was ‘good’ for the US mostly because it was much worse for everyone else.
You could say about the US during WW1/WW2, but look at their economy leading up to each war and following it.
But not during the war. The US did well after the war because Europe and Asia were wrecked by war and America wasn’t.
The US economy (and much of the rest of the world) actually went into recession after ww1. Then after ww2 you have to consider that the US was one of the very few industrialized countries that didn’t get its cities blown up. The war was ‘good’ for the US mostly because it was much worse for everyone else.