--- title: useLayerTree description: Acceder al contexto proporcionado por LayerTreeRoot. --- # useLayerTree `useLayerTree()` devuelve el contexto del `LayerTreeRoot` más cercano. Úselo en componentes descendientes que necesiten elementos, selección, ramas desplegadas o acciones de fila. ## Véase también - [LayerTreeRoot](../components/layer-tree-root) - [LayerTreeItem](../components/layer-tree-item)