Shares rallied for a second consecutive trading day after some electronics received a reprieve in the growing trade war.