2016-03-28 16:24:27 +00:00
|
|
|
/* A dummy React component which we use for stubbing out app-level components
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var React = require('react');
|
|
|
|
|
2016-03-30 23:48:46 +00:00
|
|
|
module.exports = function(opts) {
|
|
|
|
opts = opts || {};
|
|
|
|
if (!opts.displayName) {
|
|
|
|
opts.displayName = 'StubComponent';
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!opts.render) {
|
|
|
|
opts.render = function() {
|
|
|
|
return <div>{this.displayName}</div>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return React.createClass(opts);
|
|
|
|
};
|