mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 17:16:00 +07:00
build: added typings for hot reload (#187)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
7548c89401
commit
3b4d823845
@@ -19,9 +19,7 @@ const renderApp = (Component: React.ElementType): void => {
|
||||
|
||||
renderApp(App);
|
||||
|
||||
// @ts-ignore
|
||||
if (module.hot) {
|
||||
// @ts-ignore
|
||||
module.hot.accept('./App', () => {
|
||||
renderApp(App);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user