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

    Type Alias ForestAppProps<T>

    ForestAppProps:
        | [HTMLElement | string, AppCallback<T>]
        | [AppCallback<HTMLBodyElement>]

    The props for the Forest.js app.

    Type Parameters

    • T extends HTMLElement

    The DOM element to be decorated.

    The decorated DOM element.

    const app = createForest("#app", (el) => el); // <- "#app" is starting point of the app
    const app = createForest((el) => el); // <- if you don't pass the starting point, the app will be mounted to the body