Taiwan is close to key US allies (Japan and Korea) and several other nations that aren't huge fans of China lately. It's also more protected than Ukraine by natural features, i.e. a strait the Chinese invasion force would have to cross in an amphibious assault.
The deterrent from Ukraine is that conflict's showing how effective large numbers of man-portable anti-tank and anti-aircraft missiles can be on an invasion force.
Taiwan definitely got the Ukraine message, incidentally: https://twitter.com/MPWangTingyu/status/1607702645296492545
Both countries prefer a defensive posture in military development. If it isnt a threat to South Korea and Japan's territory, they will be reluctant to engage.
I don't expect either to risk escalating kenetic engagement with China for a 3rd party like Taiwan. This reunification glacier is moving in one direction and nobody in the neighborhood (except Taiwan) will be willing to stand in its path.