CatchOn Labs
  • Welcome to CatchOn Labs docs
  • What can we learn here?
    • What is CatchOn?
    • Who is CatchOn Labs?
  • CatchOn Pad
    • Contact us for demo!
    • Create your first NFT app
    • Integrate with Webflow
  • CatchOn CDN
    • Useful links
    • Prerequisites
    • Add CDN script to my website
      • React
      • Static html
      • Webflow
    • CSS attributes usage
    • CSS element configurations
      • Webflow elements configuration
  • Roadmap of CatchOn Labs
Powered by GitBook
On this page
  • Integration
  • Usage
  1. CatchOn CDN
  2. Add CDN script to my website

React

Integration

Go to ./public/index.html

Find the following section

<body>
  <noscript>You need to enable JavaScript to run this app.</noscript>
  <div id="root"></div>
  ...

Paste the <script> section in the above <body> section, like following

<body>
  <noscript>You need to enable JavaScript to run this app.</noscript>
  <div id="root"></div>
  <script> CONTRACT_ADDRESS = "0xCA127e07Ce57c78eF0C739F268A437e76c66e0F1"
    LOGIC_ADDRESS = "0xCA127e07Ce57c78eF0C739F268A437e76c66e0F1"
    CHAINID = 5
  </script>
  <script src="https://catchoncdn.vercel.app/main.js" type="text/javascript"></script>
  <link href="https://catchoncdn.vercel.app/main.css" rel="stylesheet">

</body>

Save the file changes, and the integration is done.

Usage

PreviousAdd CDN script to my websiteNextStatic html

Last updated 2 years ago

Go to

usage page