This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

17
node_modules/riot/esm/api/mount.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/* Riot WIP, @license MIT */
import $ from 'bianco.query';
import { mountComponent } from '../core/mount-component.js';
/**
* Mounting function that will work only for the components that were globally registered
* @param {string|HTMLElement} selector - query for the selection or a DOM element
* @param {Object} initialProps - the initial component properties
* @param {string} name - optional component name
* @returns {Array} list of riot components
*/
function mount(selector, initialProps, name) {
return $(selector).map(element => mountComponent(element, initialProps, name));
}
export { mount };