• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

NerdletStateContext

React context to access the nerdlet URL state.

Usage

import { NerdletStateContext } from 'nr1'

Examples

Basic

<NerdletStateContext.Consumer>
{(nerdletState) => <pre>{JSON.stringify(nerdletState, null, 4)}</pre>}
</NerdletStateContext.Consumer>

Methods

NerdletStateContext.subscribe

function (
subscriber: function

Function that will be called.

) => undefined
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.