Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.
-
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 )