Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2018 20:42
What would you like to do?
loadComponent function with converting component into text
function loadComponent( URL ) {
return fetch( URL ).then( ( response ) => {
return response.text();
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment