Where do I put my custom component?


I’m a newbie in Unreal.
I want to extend UE base component which are more engine-specific like FPrimitiveSceneProxy, FGlobalShader.
Where should I put my code?
I’ve seen plenty of examples in Plugins directory but I don’t find it relevant since it is specific to the my game.