Check out example codes for "adddynamic ue4 c++". It will help you in understanding the concepts better.

Code Example 1

PerceptionComponent->OnPerceptionUpdated.AddDynamic(this, &AAI_Zombie_Controller::OnPawnDetected);

Learn ReactJs, React Native from akashmittal.com