@gitdig/counter
v1.0.0
Published
hits counter & thumbup & rating components for static websites
Downloads
4
Readme
counter
hits counter & thumbup & rating components for static websites
Install
npm install --save counter
//
yarn add counter
Usage
dev hits service
$: docker run liujianping/hits:latest server http
usage
import React, { Component } from 'react'
import {Counter, Thumbup} from 'counter'
class Example extends Component {
render() {
return (
<div>
Hit: <Counter hit baseURL="http://localhost:8080" />
<br />
Session: <Counter session baseURL="http://localhost:8080" />
<br />
User: <Counter user baseURL="http://localhost:8080" />
<br />
Thumbup: <Thumbup baseURL="http://localhost:8080" />
<br />
</div>
)
<MyComponent />
}
}
License
MIT © gitdigg