Skip to content

sharangj/react-colombia-ads

Repository files navigation

react-colombia-ads

A react component for embedding colombia ads

NPM JavaScript Style Guide

Install

npm install --save react-colombia-ads

Usage

import React, { Component } from 'react'

import { ColumbiaAd } from 'react-colombia-ads'
import 'react-colombia-ads/dist/index.css'

class Example extends Component {
  render() {
    const colombiaAdStyle = {
      minHeight: '2px',
      width: '100%'
    }
    return (
      <ColombiaAd
        mobileSlotId='<mobile id>'
        desktopSlotId='<desktop id>'
        style={colombiaAdStyle}
        section='ArticleShow'
      />
    )
  }
}

License

MIT © sharangj

About

A react component to render colombia ads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published