<RichTreeView
  items={MUI_X_PRODUCTS}
  apiRef={apiRef}
  experimentalFeatures={{ labelEditing: true }}
  isItemEditable={(item) =>
    apiRef.current!.getItemOrderedChildrenIds(item.id).length === 0
  }
  defaultExpandedItems={['grid', 'pickers']}
/>