You can remember the meaning of 电子 with this easy mnemonic:
Keep electricity (电) and electronic devices in general away from your child (子).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.