When did China become a republic?