Who told you electronics is not allowed? It is allowed. Just don't bring haram stuff like alcoholic drinks, drugs, pork, etc.