How did the Opium Wars create foreign influence in China?

How did the Chinese react to these foreigners? Write your response in paragraph form.