Electron has a number of drawbacks – builds tend to be large and memory-hungry, for instance – but the advantage of being able to use familiar web technology to create a single code-base that can generate builds for macOS, Linux, and Windows outweighs the downsides in many cases.
The downsides are pretty much all for the end user as their machine's RAM & disc get swallowed; the developer gets a much easier life in return.