Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/07akioni/demoup
https://github.com/07akioni/demoup
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/07akioni/demoup
- Owner: 07akioni
- Created: 2022-05-28T12:17:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-22T11:18:08.000Z (about 1 year ago)
- Last Synced: 2024-04-14T05:37:52.723Z (8 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'))
)
```