Indeed. Demographic change happens when a country develops, not before. That's how it's always been, everywhere, unless you want to do like China.
You just contradicted yourself by listing China.....also India. Lets not forget whole swaths of Latin America that altered racial demographics artificially. It definitely can be done without development.