how to get datapage from react using the pcore and pconnect in react

i’m trying to get the datapage data using the pcore and pconnect and can you guide how to get the data from pega and log it on console

@PrasanthD16613489

Please refer to this example to get started with PCore and PConnect.

PCore.getDataApiUtils()
.getData(dataPage, payload)

Pcore and PConnect documentation : Pegasystems Documentation