dynamic react router
This commit is contained in:
19
client/dashboard/power/table/table.component.js
Normal file
19
client/dashboard/power/table/table.component.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import Templates from 'config/templates';
|
||||
|
||||
import House from './../../../models/house';
|
||||
|
||||
class TableComponent extends React.Component {
|
||||
|
||||
render() {
|
||||
var powerTableRt = Templates.forComponent('power_table');
|
||||
return powerTableRt.call(this);
|
||||
}
|
||||
}
|
||||
|
||||
TableComponent.contextTypes = {
|
||||
house: React.PropTypes.instanceOf(House),
|
||||
router: React.PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
export default TableComponent;
|
||||
Reference in New Issue
Block a user