-
-
Save Comandeer/cbf56e87fb018bb8a04adc2c077e060c to your computer and use it in GitHub Desktop.
registerComponent 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
window.loadComponent = ( function() { | |
function fetchAndParse( URL ) { | |
[…] | |
} | |
function registerComponent() { | |
} | |
function loadComponent( URL ) { | |
return fetchAndParse( URL ).then( registerComponent ); | |
} | |
return loadComponent; | |
}() ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment