I think the idea of one programming language everywhere has sailed, for a while at least.
It looked like JavaScript was going to be able to do it. React and React Native were very promising.
But since we now have Swift/SwiftUI and Kotlin/Jetpack, each platform has a language and framework specifically tailored for it. Except for Windows which is still a shit show.
Attempts to abstract this in a cross-platform layer are becoming more and more difficult, and offering less marginal value (e.g. we now have declarative frameworks natively whereas before we only had React).
Each platform has a recommended way to do everything, and we should follow the conventions of each platform.
I would be interested to hear if anyone has actually had successful though with frontend code sharing...
It can be depressing that you have 20 electron applications running to put icons in the tray but heck... everybody wants to stuff icons in your tray and most of those x-platform frameworks can't make a tray icon. I did an evaluation of a whole bunch of x-platform frameworks and they all sucked, though I do like JavaFX best of all. There's a reason why Electron is as big as it is.