Check out example codes for "quaternion euler". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine;public class Example : MonoBehaviour
{
    void Start()
    {
        // A rotation 30 degrees around the y-axis
        Quaternion rotation = Quaternion.Euler(0, 30, 0);
    }
}

Learn ReactJs, React Native from akashmittal.com