0👍
Well, I analyzed the repo and by looking at the it, I think you should use the render_vue_component
only for rendering the root component, like the main.js
when you start a project with @vue/cli:
<%= render_vue_component('App', { router }) %>
I came to this conclusion by analyzing the vueonrails source code.
If you look to the render_vue_component function, it only takes the identifier and a data object, which internally calls render_react_component
.
By this signature, it simply don’t fit with Vue’s render function signatures, which are (element, children)
or (element, attributes, children)
.
Maybe you find a better support by opening an issue on the repo.
But I’d think twice before using this project because there isn’t any documentation so far and checking the website, seems like they are more focused in selling books about the project than creating a documentation.
- [Vuejs]-ReadableStream when I echo data to Vue
- [Vuejs]-How to add a loader to handle .mpd and .mp4s filetype (dash media files)?