import symbol from '../assets/twitter.svg'; // Import sprite instance which already contains twitter logo required above import sprite from 'svg-sprite-loader/runtime/sprite.build'; // Render sprite const spriteContent = sprite.stringify(); const pageContent = ` ${spriteContent} `; console.log(pageContent);