mirror of
https://github.com/mgerb/mywebsite
synced 2026-03-05 07:55:23 +00:00
handling sensors with redux
This commit is contained in:
@@ -2,10 +2,13 @@ import React from 'react';
|
||||
|
||||
export default class SensorInfo extends React.Component{
|
||||
|
||||
|
||||
componentDidMount(){
|
||||
this.props.sensorActions.fetchSensorInfoYear('Grand Meadow', '2016');
|
||||
this.props.sensorActions.fetchSensorInfoMonth('Grand Meadow', '2016', 'May');
|
||||
}
|
||||
render(){
|
||||
return(
|
||||
<div>Test123</div>
|
||||
<div class="Content">Test123</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user