Cleanup user-info, make preloader and list-comments pure functions

This commit is contained in:
DmitryTsepelev
2018-07-06 23:23:31 +04:00
committed by Aleksei Gurianov
parent b08e351da0
commit c173647d96
4 changed files with 45 additions and 39 deletions
+10 -12
View File
@@ -1,14 +1,12 @@
/** @jsx h */
import { h, Component } from 'preact';
import { h } from 'preact';
export default class Preloader extends Component {
render(props) {
return (
<div className={b('preloader', props)}>
<div className="preloader__bounce" />
<div className="preloader__bounce" />
<div className="preloader__bounce" />
</div>
);
}
}
const Preloader = props => (
<div className={b('preloader', props)}>
<div className="preloader__bounce" />
<div className="preloader__bounce" />
<div className="preloader__bounce" />
</div>
);
export default Preloader;