because they need to move every few weeks and they could not haul a big house along so they went in tents
It is true that when mining was no longer profitable, and mines stopped producing, the mining towns became ghost towns. The reason was because the people that lived in the town had to leave the area looking for work.
Hoovervilles
A gold mining town could spring up very suddenly when gold was found in a particular location, and there wasn't enough time to build normal housing for all the prospectors who might come flooding in. Also, since a prospector might suddenly want to move to a different location in search of more gold, it is useful to have portable housing.
possibly no electricity.
Mining towns were different than Mormon towns mostly because mining towns were focused on getting rich and mining, and Mormon towns were focused on religion rather than money. Mining towns were more 'rough and tumble' or 'wild west' than Mormon towns, which were more peaceful and civilized and had a lot more women and children. However, in the west, some Mormon towns were also mining towns. Nevertheless, most Mormon towns were farming, ranching, or industrial communities.
Such make-shift 'towns' are known as shanty towns. Though it can also be known as a squatter area.
Most of the old mining towns are considered to be ghost towns now. Many of the mines went out of business and without the work, people had to move away and leave the town empty.
Large mining companies
Large mining companies
Large mining companies
Hoovervilles are towns of shacks and tents.
Hoovervilles-apex