After the Twitter saga, two of my acquaintances had to leave the US after being sacked. The H1B is tied to your job, and switching employers is incredibly stressful since you need to find someone willing to sponsor you.
If you’re aiming to stay in the US permanently, the path to a green card and eventual citizenship is just as thorny. Many people go there on an H1B, work in big tech, buy houses, get fired, and often leave the US in shambles.
Countries like Germany, Finland, and the Netherlands handle this visa process better. If you work in tech, you get a Blue Card that transitions into a green card in three years, and then you can apply for citizenship after five. After a year, your visa is no longer tied to your employer, so you can switch jobs. But these countries suffer from bureaucracy and extreme language fragmentation. It’s hard to get excited about learning German and joining a local tech company for peanuts in salary.