Ways to "Add Component from class"?

I have a problem described here: https://answers.unrealengine.com/questions/274816/ways-to-add-component-from-class.html

Anyone know how to “spawn component from class”?