If you're new to China traffic, just know that there is a method to the madness. I tell people traffic is hyper-aggressive but predictable. Drivers and bikers are paying close attention, and everyone knows this on the road... so everyone pushes that assumption to the boundaries, leaving little margin for error.
Stay alert, don't panic.
Go with the flow
A general understanding in China is that the priority goes to the moving object that is larger. If you are walking, watch for bikes. If you are biking, watch for the e-bikes, if you are e-biking, watch for motorcycles, carts, cars and so on. However, say there is a group of 20 cyclists crossing in front of a bus, the cyclists will be large enough to take the priority - let the locals take the lead during these types of menuevers, hop in the middle of the moving crowd.
Note that "going with the flow" does not mean trying to match that overloaded water delivery motorbike as he rides through a red light. Or rushing to the intersection to get through during the yellow signal of '3-2-1'.
Go with the flow. Don't go against the current. Look for the calm flowing waters and smoothly get to where you're going.
Having to go around a walkway blocked by a mountain of bikes is frustrating. The new e-bikes are meant to be parked in designated areas that are shown in the APP.