mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-04-30 16:24:49 +03:00
Check that it puts the read marker in the right place, and check that the animation works. ... all of which has been surprisingly painful.
21 lines
430 B
JavaScript
21 lines
430 B
JavaScript
/* A dummy React component which we use for stubbing out app-level components
|
|
*/
|
|
'use strict';
|
|
|
|
var React = require('react');
|
|
|
|
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);
|
|
};
|