Which state was formed when it seceded from the Confederacy?

west Virginia