How to get Forge macro config without react?

How to get the Forge macro configuration without using react? In the documentation page https://developer.atlassian.com/platform/forge/manifest-reference/modules/macro/#options-for-submitting-the-configuration and the linked example pages, all calls to get the config are of the form:

import { useConfig } from "@forge/react";
const actualConfig = useConfig();

What is the equivalent of useConfig() for customUI without react?

I’d try the getContext function as one of the options mentioned at the top of the page for what to migrate from for useConfig() (and the other is from @forge/react).

1 Like