Simple react component for using Odometer.js in your React application.
-
Run
npm install --save react-odometerjs
-
Include component in your application:
import Odometer from 'react-odometerjs';
// ...
return ( <Odometer value={1234} options={{ format: '' }} /> );
You can pass odometer options through options
attribute. See
official documentation of Odometer.js to learn about
available options.
Found an issue? You are welcome here.