Check out example codes for "UPARAM(ref)". It will help you in understanding the concepts better.

Code Example 1

UFUNCTION(BlueprintCallable, DisplayName = "Add", Category = "ProceduralGeneration|Noises")
static UGenerationModule* ConstructAdd(UPARAM(ref) UGenerationModule*& ModuleA, UPARAM(ref) UGenerationModule*& ModuleB);Copy

Learn ReactJs, React Native from akashmittal.com