Perseus
    Preparing search index...

    Hierarchy

    Index

    Constructors

    • Parameters

      Returns HintsRenderer

    • Parameters

      Returns HintsRenderer

    Properties

    _cacheHintImages: () => any = ...
    _cacheImagesInHint: (arg1: any) => void = ...
    _hintsVisible: () => number = ...

    If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

    static contextType = MyContext
    // For TS pre-3.7:
    context!: React.ContextType<typeof MyContext>
    // For TS 3.7 and above:
    declare context: React.ContextType<typeof MyContext>
    getApiOptions: () => APIOptionsWithDefaults = ...
    getSerializedState: () => any = ...
    • do not use in new code.
    state: any = ...
    contextType: Context<I18nContextType> = PerseusI18nContext

    If set, this.context will be set at runtime to the current value of the given Context.

    type MyContext = number
    const Ctx = React.createContext<MyContext>(0)

    class Foo extends React.Component {
    static contextType = Ctx
    context!: React.ContextType<typeof Ctx>
    render () {
    return <>My context's value: {this.context}</>;
    }
    }
    defaultProps: DefaultProps = ...

    Methods

    • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

      Returns void

    • Called immediately after updating occurs. Not called for the initial render.

      The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

      Parameters

      Returns void