SevOne Interview Question

Using React, hide all children in node in a tree by clicking the name.