r2vnode
v0.0.2
Published
Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.
Downloads
4
Readme
r2vnode
Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.
Usage
Install
yarn add r2vnode
Write jsx and transform with
vue
functionimport satroi from 'satori' import { vue } from 'r2vnode' const message = 'Hello from Vue!' const svg = await satori( vue( <section> <h1>{message}</h1> <p>something like this !</p> </section> ), satoriOptions )