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

https://github.com/zakarialaoui10/van-wrapper

Van-Wrapper is a tool that makes it easy to render VanJS elements within other popular frameworks.
https://github.com/zakarialaoui10/van-wrapper

vanjs wrapper zikojs

Last synced: about 1 year ago
JSON representation

Van-Wrapper is a tool that makes it easy to render VanJS elements within other popular frameworks.

Awesome Lists containing this project

README

          

# Van-wrapper
Van-Wrapper is a tool that facilitates the rendering of VanJS elements within other popular frameworks.

## Integrate Vanjs inside Other Environment

### VanJS Component Decalaration
```js
// HelloFromVan.js
import { VanWrapper } from "van-wrapper/vue";
const {a, p, div} = van.tags
const HelloFromVan = ({environement}) => div(
p(message, a({href: "https://vanjs.org/"}, "VanJS")),
p(
"This is a ",
a({href: "https://vanjs.org/"}, "VanJS "),
`Element Wrapped inside ${environement} App`
)
)
export default HelloFromVan
```

### Use
#### JSX Based

```jsx
import VanWrapper from "van-wrapper/react"
// import VanWrapper from "van-wrapper/solid"
// import VanWrapper from "van-wrapper/preact"
import HelloFromVan from "./HelloFromVan.js"
const environement = "React" // It's only a message
export default function App(){
return (



)
}
```

#### Vue
```xml

import VanWrapper from "van-wrapper/vue"
import HelloFromVan from "./HelloFromVan.js"



```
#### Svelte
```jsx
---
import VanWrapper from "van-wrapper/svelte";
import HelloFromVan from "./HelloFromVan.js"
---

```

# License
This projet is licensed under the terms of MIT License