react-odometer

0.0.1 • Public • Published

react-odometer

A simple React component to insert Hubspot's Odometer

I added no value

To be clear, I just dropped the code into a repo we can require easily. I (Adam Neary) didn't add any value whatsoever.

Check out [https://github.com/HubSpot/odometer] for the valuable code.

Getting started

Install via npm:

npm install --save react-odometer

Then simply require and pass a value.

React.createElement(OdometerComponentvalue: @state.data)

Note: I have not yet managed to get the core Odometer library to place nicely with Browserify, so I have been including the original script as-is.

<script src='odometer.js'></script>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    215
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    215

Package Sidebar

Install

npm i react-odometer

Weekly Downloads

93

Version

0.0.1

License

MIT

Last publish

Collaborators

  • adamrneary