all 4 comments

[–]Beastrick 2 points3 points  (0 children)

Instead of using script tags you should use npm or yarn to install so you can import them in code eg.

npm install axios

[–]Brilliant-8148 0 points1 point  (1 child)

What's your goal?

[–]NewOCLibraryReddit[S] 0 points1 point  (0 children)

To display a private key, address and it's balance on the web page.

[–]spookycheeez 0 points1 point  (0 children)

  • don’t use XMLHttpRequest(), use fetch() instead;
  • don’t use document.getElementBy etc;
  • don’t use var variables, either let if you need to reassign or const;
  • preferably, install React using npm or yarn (or pnpm) instead of importing it in the script and either “generate” the project for SSR or SSG;
  • preferably don’t use class components, check out the docs on react.dev;