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

https://github.com/vikiboss/react-online

React Online Playground, simple but efficient, supports sharable URL. 「React 单文件实时预览编辑器」,轻量、高效、使用 TS、Import Map 和 esm.sh,支持可分享 URL
https://github.com/vikiboss/react-online

editor monaco-editor online-editor playground react react-playground shiki typescript

Last synced: 3 months ago
JSON representation

React Online Playground, simple but efficient, supports sharable URL. 「React 单文件实时预览编辑器」,轻量、高效、使用 TS、Import Map 和 esm.sh,支持可分享 URL

Awesome Lists containing this project

README

          

# React Online Playground

WIP. Visit [here](https://react-online.vercel.app/) or [backup domain](https://react-online.viki.moe/).

## Features

- Support sharable url (base64 encoded in hash), such as [here](https://react-online.viki.moe/#code=aW1wb3J0IHsgY3JlYXRlUm9vdCB9IGZyb20gJ3JlYWN0LWRvbS9jbGllbnQnCmltcG9ydCB7IHVzZU1vdXNlIH0gZnJvbSAnQHNoaW5lZC9yZWFjdC11c2UnCgpmdW5jdGlvbiBBcHAoKSB7CiAgY29uc3QgeyB4LCB5IH0gPSB1c2VNb3VzZSgpCiAgcmV0dXJuIDxkaXY%2BKHgsIHkpOiAoe3h9LCB7eX0pPC9kaXY%2BCn0KCmNyZWF0ZVJvb3QoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3Jvb3QnKSEpLnJlbmRlcig8QXBwIC8%2BKQo%3D)
- Support many third-party libraries (`dayjs`, `@shined/react-use`)
- Automatically add imports in `Import Map`
- Dark mode and beautiful monaco editor and clean UI
- Instantly see the result of your code, powered by [sucrase](https://github.com/alangpierce/sucrase)

## Examples Links

- [ProfileCard](https://dev.viki.moe/#code=eNqtVc1u00AQvucpRhGqE6mbpCGUKE2KKnIoUlsRIZA4NRt7nWy73nV21%2FmpmxvihOgTcEXcQSriyKMgirjxCqztxLHTAheiSN7d8XzzfTOzY%2Br5Qmpw8PxMgSuFB1a8tvYKBTKLbW7AbU0FhwPfL5UhLABIogPJoWSWAG2HTsBmWKkT7JGO5aOmtR9bjK3XeyqFSxl5jKWzPAQYj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