Manually integrate the Edgee SDK in a React app.
react-edgee
library using npm or yarn.
EdgeeSdk
component from the react-edgee
library:
app
folder structureEdgeeSdk
component inside the <head>
tag of your RootLayout
component:
<YOUR_SDK_URL>
with the URL provided in the Edgee console, in the project overview section.
pages
folder structureEdgeeSdk
component in your MyApp
component:
<YOUR_SDK_URL>
with the URL provided in the Edgee console, in the project overview section.
EdgeeSdk
component inside the <Router>
component in your App
component:
<YOUR_SDK_URL>
with the URL provided in the Edgee console, in the project overview section.
useEdgeeDataCollection
)useEdgeeDataCollection
hook simplifies event tracking by providing direct access to the Edgee Data Collection SDK methods.