West Virginia in the American Civil War

The U.S. state of West Virginia was formed out of western Virginia and added to the Union as a direct result of the American Civil War (see History of West Virginia), in which it became the only state to declare its independence from the Confederacy. In the summer of 1861, Union troops under General George McClellan drove off Confederate troops under General Robert E. Lee. This essentially freed Unionists in the northwestern counties of Virginia to form a functioning government of their own as a result of the Wheeling Convention. Prior to the admission of West Virginia the government in Wheeling formally claimed jurisdiction over all of Virginia, although from its creation it was firmly committed to the formation of a separate state.

Question: was west virginia a confederate state in the civil war
Answer: no