Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp component base.basecomponentcontext.instanceid

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-component-base > BaseComponentContext > instanceId

BaseComponentContext.instanceId property

A unique identifier for the instance of the component.

Signature:

get instanceId(): string;

Remarks

A component implementation can be loaded multiple times on the page. For example, if the component is a charting web part, multiple instances of this web part could be added to the SharePoint canvas. The instanceId uniquely identifies each of these instances.

Clone this wiki locally