I've mentioned before that our HS in Cincy was "lily white" and then incorporated an area south of the district that was, well, not. It caused quite a furor at the time (1975ish). The advantage they had was a very large industrial base for taxes (GE was there, 20,000 employees at the time). Over time, there was some white flight, the neighboring Sycamore school district was 95% white and property values were 20% higher than where we lived. I could see houses in that district through the trees.
At the time my kids attended, the school had discipline issues and a number of security officers. Many of the black kids of course came from poor broken homes and some had serious discipline problems. But some used the opportunity to do quite well. Most of them had single parents, moms. (There also were poor white kids, the issues were not entirely black by any means.) The school offered an IB program, one of few in the state. The top kids would go to schools like Stanford and MIT every year, I would go to the Senior Awards ceremony to present our scholarship.
It's a decent success story because some, maybe many, of those black kids ended up with far better educations than they would have had in an all black school with a limited tax base. Another couple awarded a scholarship to the first HS graduate to go to college from that family.
Education is the key, but getting there is not so easy of course. It's somewhat like the virus spread, if society can spin out well educated black kids faster than thugs and gang members, over time it works itself out.
My whole family was in education except me, my great uncle was head of the state dept of ed for many years.