import React from 'react'; import ReactDOM from 'react-dom'; import {Gauge} from './src/index'; const DemoApp = React.createClass({ getInitialState: function () { return { gauge1: 35, gauge2: 75 }; }, generateRandomValues: function () { this.setState({ gauge1: Math.floor((Math.random() * 100) + 1), gauge2: Math.floor((Math.random() * 100) + 1) }); }, render: function () { const inEdit = this.state.inEdit !== false; return (