Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/logotip4ik/r2vnode

Transforms Vue VNode to React to generate satori images!
https://github.com/logotip4ik/r2vnode

Last synced: 2 days ago
JSON representation

Transforms Vue VNode to React to generate satori images!

Awesome Lists containing this project

README

        

# r2vnode

Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.

## Usage

1. Install
```bash
yarn add r2vnode
```

2. Write jsx and transform with `vue` function
```tsx
import satroi from 'satori'
import { vue } from 'r2vnode'

const message = 'Hello from Vue!'

const svg = await satori(
vue(

{message}



something like this !



),
satoriOptions
)
```