Check out example codes for "how to use beacon power in minecraft in java edition". It will help you in understanding the concepts better.

Code Example 1

/give @p beacon 1 0

Code Example 2

/give @p beacon 1

Learn ReactJs, React Native from akashmittal.com