Spouses of certain H-1B visa holders can continue to work while in the United States. The principal H-1B Beneficiary must have an approved I-140 and be benefitting from AC-21. This is briefly explained by USCIS here: https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-1b-specialty-occupations/employment-authorization-for-certain-h-4-dependent-spouses
