Forest.js Core Documentation - v1.2.3
    Preparing search index...

    Type Alias AppCallback<T>

    AppCallback: (props: T) => T

    Callback function for the Forest.js app.

    Type Parameters

    • T extends HTMLElement

    Type declaration

      • (props: T): T
      • Parameters

        • props: T

          The DOM element to be decorated.

        Returns T

        The decorated DOM element.

    const app = createForest("#app", (el) => el); // <- "#app" is starting point of the app