getNodeLabel
Sourceimport { getNodeLabel } from "@prestojs/util";
getNodeLabel(item)
Get a React node label from an item
If item implements getNodeLabel that will be used otherwise getLabel will be used.
If neither are defined an error is thrown. To conditional call this check if labeled first
with isLabeled.
| Parameter | Type | Description | |
|---|---|---|---|
| * | item | any |
Returns