File: samples/react/README.md

Recommend this page to a friend!
  Classes of Arturs Sosins  >  Countly Web SDK  >  samples/react/README.md  >  Download  
File: samples/react/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Countly Web SDK
Track site accesses and errors the Countly API
Author: By
Last change:
Date: 6 months ago
Size: 1,377 bytes
 

Contents

Class file image Download

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.<br /> Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.<br /> You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.<br /> See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.<br /> It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br /> Your app is ready to be deployed!

See the section about deployment for more information.

Integrating Countly

This project explains how to integrate Countly web sdk using hooks and class based components. <br /> You can try both methods by simply changing the root App component export from index.js.<br />

App-WithEffect.js uses hooks to integrate the countly SDK<br /> App-WithRouter.js uses class based components to integrate the countly SDK<br />