new component model

This commit is contained in:
ceolter
2016-09-14 15:02:35 +01:00
parent b5949d8d5d
commit 1e9ef53316
2 changed files with 2 additions and 8 deletions

View File

@@ -2,12 +2,10 @@ import React from 'react';
export default class SimpleCellRenderer extends React.Component {
render() {
var params = this.props.params;
// the class below does nothing, it's just for testing, so we can inspect the dom of
// the result and looking for it, to validate that this cellRenderer is actually getting used.
return (
<span className="simple-cell-renderer">{params.value}</span>
<span className="simple-cell-renderer">{this.props.value}</span>
);
}
}