Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/07akioni/demoup


https://github.com/07akioni/demoup

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# demoup

Create a react component demo app in a simple step.

## Usage

Use rspack to serve current app.

```ts
import { createRoot } from 'react-dom/client'
import { createReactNodeForRspack } from 'demoup'

createRoot(document.getElementById('root')!).render(
// @ts-ignore
createReactNodeForRspack(require.context('.', true, /^*\.preview\.tsx$/, 'sync'))
)
```