9 lines
225 B
JavaScript
9 lines
225 B
JavaScript
|
export const createComponentWithStore = (Component, store, propsData = {}) => new Component({
|
||
|
store,
|
||
|
propsData,
|
||
|
});
|
||
|
|
||
|
export default (Component, props = {}, el = null) => new Component({
|
||
|
propsData: props,
|
||
|
}).$mount(el);
|