Build options page async
Hi,
I need to return component in async callback
This is current version
chrome.storage.sync.get(constants.storageKey, function (value: DSStorageSettings) {
const settings = getSettings(value)
const settingsElement = document.getElementById('settings') as HTMLElement
const root = createRoot(settingsElement)
root.render(<Settings settings={settings} />)
});
How to do it in Plasmo?
Thanks
0 Replies