react-toastify icon indicating copy to clipboard operation
react-toastify copied to clipboard

Use namespace import instead of default import for React

Open CruseCtrl opened this issue 4 years ago • 2 comments

I don't have allowSyntheticDefaultImports set in my project, so the typescript compiler is giving me warnings about these imports. This PR will fix the warnings

CruseCtrl avatar Nov 03 '21 17:11 CruseCtrl

Hey, why not enable allowSyntheticDefaultImports in your config?

fkhadra avatar Feb 14 '22 20:02 fkhadra

That's what I've been forced to do for now, but it would be nice if it wasn't necessary for all users of this library to have to turn on that compiler flag, and it's a very easy fix to just import it correctly

CruseCtrl avatar Feb 15 '22 13:02 CruseCtrl