Taxes for F1 and H1B married filing jointly

Hello,

 

I'm currently on H1B since 2018. I got married in 2019 and my wife came to the US on a H4 visa. I filed a paper 2019 return because I had to apply for my wife's ITIN. The 2020 return was filed electronically since my wife was a resident alien. In 2021, my wife's visa status changed from H4 to F1 in August. Can I file an electronic return for my 2021 taxes or do I need to file a paper return? I believe since she's on F1, she would need the Form 8843 attached to the return. 

 

Any help would be appreciated.

 

Thanks!