I would say that issue is not Electron itself. Issue is other GUI frameworks which are so terrible that developers prefer Electron despite its objective issues.
I spent good amount of time learning WinAPI, learning MFC, learning Delphi, learning Swing, learning JavaFX, learning a little bit of WinForms. I wrote few native Android apps and iOS apps. I'm not an expert, but I saw enough APIs.
I'm mostly backend developer. I know JS, but only enough to be able to read the code and do some modifications.
If I would need to write GUI, I'd write it with HTML/CSS/JS any day. It's infinitely easier than whatever native tech there is.
I did not try Flutter or SwiftUI though. Those are most modern frameworks, may be they improved.