Check out example codes for "Unity c# how to restart the level". It will help you in understanding the concepts better.
Code Example 1
void RestartLevel() //Restarts the level
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
Learn ReactJs, React Native from akashmittal.com