mirror of
https://github.com/mue/mue.git
synced 2026-07-19 15:04:11 +02:00
perf: further improve performance
This commit is contained in:
@@ -74,7 +74,7 @@ export default class Widgets extends React.PureComponent {
|
||||
|
||||
if (order) {
|
||||
order.forEach(element => {
|
||||
elements.push(this.widgets[element]);
|
||||
elements.push(<React.Fragment key={element}>{this.widgets[element]}</React.Fragment>);
|
||||
});
|
||||
} else {
|
||||
elements = ['greeting', 'time', 'quote', 'date'];
|
||||
|
||||
Reference in New Issue
Block a user