docs: Fix solid-js example (#1145)

This commit is contained in:
nirtamir2
2024-11-13 15:56:34 +02:00
committed by GitHub
parent 607e1162e5
commit b121ed2fe2
+1
View File
@@ -239,6 +239,7 @@ export default defineContentScript({
onMount: (container) => {
// Render your app to the UI container
const unmount = render(() => <div>...</div>, container);
return unmount;
},
onRemove: (unmount) => {
// Unmount the app when the UI is removed