File: examples/react/README.md

Recommend this page to a friend!
  Classes of Arturs Sosins   Countly Web SDK   examples/react/README.md   Download  
File: examples/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: Release ready 22.06.0 (#245)

* some codacy

* codacy

* version and changelog

* minified

* wording

* style shorter

* style shorter

* new markdown file

* lint
[872] Codacy fixes (#235)

* fix: Avoid trailing commas in object or array literals

* fix: Avoid trailing commas in object or array literals

* no comma rule added and linted

* new line fix

* mdown lint

* increased the scope of the markdown and added a markdownignore

* got rid of empty lines after list itms

* line ending reacty

* staging and linting

* reveng ga

* lf

* lintt conf

* Update .markdownlint.json

* 25true

* changes

Co-authored-by: ArtursKadikis <kadikis.arturs@gmail.com>
Date: 1 month ago
Size: 1,318 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. Open http://localhost:3000 to view it in the browser.

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

npm test

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

npm run build

Builds the app for production to the build folder. 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. 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. You can try both methods by simply changing the root App component export from index.js.

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