demoup
v0.3.4
Published
Create react component demo app with vite in a simple step.
Downloads
27
Readme
demoup
Create a react component demo app in a simple step.
Usage
Use rspack to serve current app.
import { createRoot } from 'react-dom/client'
import { createReactNodeForRspack } from 'demoup'
createRoot(document.getElementById('root')!).render(
// @ts-ignore
createReactNodeForRspack(require.context('.', true, /^*\.preview\.tsx$/, 'sync'))
)