Didn't find a way to use this component in ReactJS components
realJustinLee opened this issue · 0 comments
realJustinLee commented
import {Component} from "react";
import React from "react";
import 'justgage'
class Gauge extends Component {
componentDidMount() {
this.guage = new JustGage({
id: "guage",
value: parseInt(this.props.value),
min: parseInt(this.props.min),
max: parseInt(this.props.max),
title: this.props.title,
label: this.props.label
});
}
render() {
return (
<div id="guage"/>
);
}
}
export default Gauge;
Simply followed the samples and closed issue #315, but I got JustGage not defined and I just don't know how to solve this.