Introducing Font Awesome 5 and SVG icons

I think your best bet here is to look at how some theme components work. I would highlight these two specifically:

and

You can install these two components on your site, and/or inspect their code to see how they use JS to insert elements on the page.

6 Likes