@nolikein/typed-alpinejs
Version:
Helpers usefull to create a new AlpineJs component with Livewire 3
17 lines (16 loc) • 448 B
JavaScript
/**
* Create an AlpineJs component. It ensures the developper pass the Alpine data.
* @param component
* @returns
*/
export function createAlpineComponent(component) {
return component;
}
/**
* Create an AlpineJs component. It ensures the developper pass the Alpine data, and can register any livewire data and methods.
* @param component
* @returns
*/
export function createAlpineLivewireComponent(component) {
return component;
}