Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created October 1, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/127c140b0e78fbe4aa07f9618ea11efe to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/127c140b0e78fbe4aa07f9618ea11efe to your computer and use it in GitHub Desktop.
new Vue({
store,
render: (h) =>
h(InertiaApp, {
props: {
initialPage: JSON.parse(app.dataset.page),
resolveComponent: (name) => require(`./Views/${name}`).default, // <--- Modificamos esta línea
},
}),
}).$mount(app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment