Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @observer class Chart(props) {
- @computed get data() { return getDataWithinRange(this.props.dateRange) }
- @computed get dimensions() { return getDimensions() }
- @computed get xScale() { return getXScale() }
- @computed get yScale() { return getYScale() }
- render() {
- // use this.xScale, this.yScale etc. component will re-render automatically if any of those update.
- return <svg className="Chart" />
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement