getValue(prop, pageReference)
Obtains the value of the property from the Redux Store.
Returns
The value of the property as a string.
Parameters
Name | Type | Description | Required |
prop | string | The name of the property whose value is obtained. | ✅ |
pageReference | string | The path of the property. | ❌ |
Usage example
In this example, the API obtains the value of the firstName
property
from the Redux Store.
const firstName = getPConnect().getValue('.firstName');
Previous topic getValidationApi() Next topic hasChildren()