I have two versions of the same app, both versions provide the same functionality:
- Desktop (.net framework Windows Forms), for Windows only
- Web (.net API + Angular frontend)
Both versions share a large portion of the common .net core code.
At this moment, I have to duplicate the same UI for Desktop and Web again and again which is pretty annoying. So I’m currently thinking about porting the UI part of the Desktop application to Electron in order to achieve the following main benefit: most UI components for the Desktop and Web versions would be the same, so I don’t need to support two similar versions of the UI as I do now (I will only have to support UI components written in Angular)
Please let me reiterate: the main goal for porting my desktop app’s UI to Electron is to use the same UI code between the desktop and cloud apps which seems very attractive for me. The backend logic is the same for both versions already and written in .net core so I don’t even need to rewrite it.
I feel that the pattern I’m describing is pretty frequent so I wanted to ask: is there any sense trying to use the same UI logic for Desktop and Web versions? Are there any pitfalls? Any input about your real experience is highly appreciated.