Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Compile-step frontend frameworks and rescript

$
0
0

Will eliminating Vue SFCs allow seasmless integration? Vue components can be written like this:

import { ref, h } from 'vue'

export default {
  props: {
    /* ... */
  },
  setup(props) {
    const count = ref(1)

    // return the render function
    return () => h('div', props.msg + count.value)
  }
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles