SEC. 14. … [H]ereafter no State court or court of the United States shall admit Chinese to citizenship; and all laws in conflict with this act are hereby repealed.
—Chinese Exclusion Act, 1882

Use the excerpt to answer the question.
What prompted this law?

SEC 14 Hereafter no State court or court of the United States shall admit Chinese to citizenship and all laws in conflict with this act are hereby repealed Chin class=