React -- handling hierarchical virtual-DOM elements.