forked from opentiny/tiny-vue
17 lines
368 B
JavaScript
17 lines
368 B
JavaScript
import { Alert as TinyAlert } from '@pe-3/react'
|
|
import ReactDOM from 'react-dom/client'
|
|
function App(props) {
|
|
return (<div>
|
|
{props.children}
|
|
</div>)
|
|
}
|
|
|
|
export default class extends HTMLElement {
|
|
connectedCallback() {
|
|
ReactDOM.createRoot(this).render(
|
|
<App>
|
|
<TinyAlert center description="文字居中"></TinyAlert>
|
|
</App>
|
|
)
|
|
}
|
|
} |