Tianzifang is an example of rehabilitation for touristic purposes. Impossibly crowded when I visited. Don't stop to eat / drink / shop; it's a rip-off. Walking out of the gates you'll find far better food for a third of the price. Good if your time in Shanghai is very limited and you want to get a glimpse of old alleys.