Check out example codes for "rstudio refactor hotkey". It will help you in understanding the concepts better.

Code Example 1

Ctrl + Shift + Alt + M

Learn ReactJs, React Native from akashmittal.com