The lesson here is write native apps using the preferred native tools of the platform, and avoid shortcut solutions.
Yes electron comes with some overhead. But what you get from paying that price are products that otherwise likely wouldn't exist. Some of these are bad indeed, but some of them are also really good and provide real value.