Check out example codes for "what is the update function in godot?". It will help you in understanding the concepts better.

Code Example 1

func _process(delta):
    # Do something...
    pass

Learn ReactJs, React Native from akashmittal.com