Check out example codes for "unity textmesh pro". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine;
using TMPro;

public class UiManager : MonoBehaviour
{
    [SerializeField]
    private TextMeshProUGUI TMPtext;
}

Learn ReactJs, React Native from akashmittal.com