In what ways did French imperialism of the 1900s cause the Vietnam War?

In what ways did French imperialism of the 1900s cause the Vietnam War?