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>

Package Sidebar

Install

npm i react-odometer

Weekly Downloads

84

Version

0.0.1

License

MIT

Last publish

Collaborators

  • adamrneary