feat: hot reload for clock and greeting

This commit is contained in:
David Ralph
2021-04-28 15:06:15 +01:00
parent b26265eceb
commit b795ceb33d
4 changed files with 21 additions and 18 deletions

View File

@@ -110,6 +110,9 @@ export default class Greeting extends React.PureComponent {
return element.style.display = 'none';
}
this.timer = null;
this.getGreeting(0);
element.style.display = 'block';
}
});

View File

@@ -96,6 +96,9 @@ export default class Clock extends React.PureComponent {
return element.style.display = 'none';
}
this.timer = null;
this.startTime(0);
element.style.display = 'block';
}
});