AG-420 Improve React implementation
This commit is contained in:
15
src/fullWidthExample/NameAndAgeRenderer.jsx
Normal file
15
src/fullWidthExample/NameAndAgeRenderer.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React, {Component} from "react";
|
||||
|
||||
export default class NameAndAgeRenderer extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.values = `Name: ${this.props.data.name}, Age: ${this.props.data.age}`;
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<span>Full Width Column! { this.values }</span>
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user