Both China and Taiwan are looking at the Ukraine war trying to learn something from the experiences of Russia and Ukraine.