How can I make the root component of an actor overridable?

Can you go into more detail about what actual code you need? I’m not doing any code overriding, just replacing the root component.