Why were Chinese and Japanese Immigrants despised, history homework help

This writing assignment relates to a strange consequence for the Chinese and the Japanese immigrants living primarily in California. Statistically, these two groups made up a very small percentage of California’s population and were mostly employed. 

Why were these two groups so intensely despised by European Americans despite their strong work ethic?

About 2 to 3 paragraphs is good