-
-
Save Comandeer/9e2fd36e03ff6fc072a333eb76ea8382 to your computer and use it in GitHub Desktop.
getSettings helper function boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSettings( { template, style, script } ) { | |
return { | |
template, | |
style, | |
script | |
}; | |
} | |
[…] | |
function loadComponent( URL ) { | |
return fetchAndParse( URL ).then( getSettings ).then( registerComponent ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment