Accessing Options

usePnpHookOptions(): PnpHookGlobalOptions;

Returns options from the nearest PnpHookOptionProvider.

Example

import { usePnpHookOptions } from "pnp-react-hooks";

function ExampleComponent() {
    const options = usePnpHookOptions();

    .....
    .....
    .....
    .....
}