Check out example codes for "jquery ui cdn". It will help you in understanding the concepts better.

Code Example 1

<script
  src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"
  integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
  crossorigin="anonymous"></script>

Code Example 2

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Learn ReactJs, React Native from akashmittal.com