import type { PlasmoCSConfig, PlasmoGetInlineAnchor } from "plasmo"
import TestComponent from "./TestComponent"
import { createRoot } from "react-dom/client"
export const config: PlasmoCSConfig = {
matches: ["https://x.com/home"]
}
console.log('inside plasmo-inline')
const mainElement = document.querySelector('main')
const testComponentWrap = document.createElement('div')
testComponentWrap.id = 'test-component-wrap'
mainElement?.append(testComponentWrap)
const root = createRoot(testComponentWrap)
root.render(TestComponent())
import type { PlasmoCSConfig, PlasmoGetInlineAnchor } from "plasmo"
import TestComponent from "./TestComponent"
import { createRoot } from "react-dom/client"
export const config: PlasmoCSConfig = {
matches: ["https://x.com/home"]
}
console.log('inside plasmo-inline')
const mainElement = document.querySelector('main')
const testComponentWrap = document.createElement('div')
testComponentWrap.id = 'test-component-wrap'
mainElement?.append(testComponentWrap)
const root = createRoot(testComponentWrap)
root.render(TestComponent())