Electric motors are going to last a long time and maybe last longer than even the chassis. The batteries should still be good a decade later albeit at maybe 70-80% of capacity compared to when new. One of my uncles has an early Tesla S that is 9yrs and over 200,000+ miles old; his best weather range currently is at 70% from what he logged when new. It supercharges really slow now (Tesla nerf'd the speed after ~4yrs ) but the car still runs fine so I'd expect no less degradation from the newer Samsung SDI battery cells in the 4xe especially as it will see only L1 or L2 charging.
Electronics in the 4xe, besides the built-in inverter, motor, battery and temp control parts, is typical of other Wranglers and other vehicles in general. The areas of failure I would bet are not much different than a regular Wrangler (CV or U-joints, bearings, ball joints etc), and the powertrain itself should last longer with the electric motor always assisting not to mention doing all the work when running short errands in EV mode.
Gas/Diesel engines get most wear & tear from cold starts, short trips and poor maintenance. The 4xe in EV mode can eliminate the wear from the short trips so I'd also wager the 2.0 in the 4xe will last many years/miles longer than the non-4xe Wranglers. We shall certainly see, but my confidence is high enough that I bet my money on purchasing for the long term.