(children, prop)
| 25 | var a = React.createFactory('a'); |
| 26 | |
| 27 | function divProps(children, prop) { |
| 28 | return CreateReactClass({ |
| 29 | render: function() { |
| 30 | var propVal = this.props[prop]; |
| 31 | if (typeof propVal === 'object') propVal = JSON.stringify(propVal); |
| 32 | return div(children, propVal); |
| 33 | } |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | function delay(ms, func) { |
| 38 | if (func === undefined) { |