React: CRA with TypeScript enable HOT
Add these lines of code to enable it in index.tsx
if((module as any).hot && process.env.NODE_ENV !== 'production'){
(module as any).hot.accept()
}
Add these lines of code to enable it in index.tsx
if((module as any).hot && process.env.NODE_ENV !== 'production'){
(module as any).hot.accept()
}