select proper jsx branch