if(interactive()){
library(vueR)
library(htmltools)
browsable(
tagList(
tags$div(id="app","{{message}}"),
tags$script(
"
var app = {
data: function() {
return {
message: 'Hello Vue!'
}
}
};
Vue.createApp(app).mount('#app');
"
),
html_dependency_vue3()
)
)
}
Run the code above in your browser using DataLab