forked from opentiny/tiny-vue
18 lines
371 B
JavaScript
18 lines
371 B
JavaScript
import { Button as TinyButton} 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>
|
|
<TinyButton round type='primary'>主要按钮</TinyButton>
|
|
</App>
|
|
)
|
|
}
|
|
} |