Skip to content

Instantly share code, notes, and snippets.

View marcelocra's full-sized avatar
🃏
loading...

Marcelo Almeida marcelocra

🃏
loading...
View GitHub Profile
@marcelocra
marcelocra / Component.js
Created August 22, 2024 18:17
How to use Vue with JavaScript tagged literals and HTM
import { default as htm } from 'htm';
import { RouterLink, RouterView } from 'vue-router';
import { ref, h } from 'vue';
// A component with something like:
//
// export default {
// setup(_props, { slots }) {
// return () => h('div', slots.default());
// }