1 | ;
|
2 |
|
3 | var React = require('react');
|
4 |
|
5 | var Panel = React.createClass({
|
6 | displayName: 'Panel',
|
7 |
|
8 | shouldComponentUpdate: function shouldComponentUpdate(nextProps) {
|
9 | // not render if the status didnt change or the children is the same
|
10 | // if (nextProps.update) {
|
11 | // return true;
|
12 | // } else if (nextProps.status === this.props.status) {
|
13 | // return false;
|
14 | // } else {
|
15 | // return true;
|
16 | // }
|
17 | return true;
|
18 | },
|
19 |
|
20 | render: function render() {
|
21 | var tmpl;
|
22 | return React.createElement(
|
23 | 'div',
|
24 | { className: this.props.className },
|
25 | this.props.children
|
26 | );
|
27 | }
|
28 | });
|
29 |
|
30 | module.exports = Panel; |
\ | No newline at end of file |