topads-react

1.7.10 • Public • Published

Commitizen friendly

TOPADS display library in React.

This library will give you the facility to render the following templates for the topads:-

  1. CPM
  2. CPC

To Use this library you need to follow the below steps:-

  1. install the library from npm by running the command
npm install --save topads-react

or

yarn add topads-react
  1. Import the module in your file from the 'topads-react' module installed in node_modules. So if you need to use CPM Template then use it like this:-
import { CPCTemplate } from '../src'

or if you need to import more then one template.

import { CPCTemplate, CPMTemplate } from '../src'

Local project Setup:-

Since we can not see the topads product on local environment due to CORS check. For this first we need to bypass the CORS on browser. We can bypass this by running the following command:-

open -n -a "Google Chrome" --args --user-data-dir=/tmp/temp_chrome_user_data_dir http://localhost:6006/ --disable-web-security

It will open a new instance of chrome browser and where we will be able to see topads product.

Dependents (0)

Package Sidebar

Install

npm i topads-react

Weekly Downloads

0

Version

1.7.10

License

MIT

Unpacked Size

575 kB

Total Files

4

Last publish

Collaborators

  • akankshac
  • haani104
  • nasirhusain