DEV Community

Discussion on: Detect Page Refresh, Tab Close and Route Change with React Router v5

Collapse
 
latobibor profile image
András Tóth

Pro-tip: ditch the default exports and use named exports wherever you can. Your IDE will work them better and there is no accidental renaming plus your code is going to be tree-shakeable.