How to attach static mesh to static mesh by socket in an actor?

Yes, I’ve seen that. However, the author just dragged the mesh into the world, and it becomes a static mesh actor. Now I want to do it in an actor, and I want to add a static mesh component to another static mesh component. How can I make it?