External JS in react

External JS can be imported using 4 ways.
  • Using script tag in index.html - not good way because it will load everytime
  • Using react-script-tag package
  • Using react-helmet package
  • Dynamically creating script tag


Complex problems, Simple Solutions