20
gitpush
6y

Am I doing something wrong here? Or those imports are so damn annoying?

Any solution for reducing those imports? especially that I am using them all and not have non-used imports

Just like Java, too much imports -.-

Comments
  • 6
    Breaking up to small components in different files? But then you need to import those. Or maybe import { Chip, Button} from 'material-ui'? Instead of separate imports. With tree shaking it shouldn't matter.
  • 4
    @mzeffect oh I forgot about that lol
    Thanks I'll start with that :D
  • 3
    @mzeffect I did what you said and it looks better now thanks for pointing that out :)
  • 2
    @gitpush you're welcome :)
  • 3
    IIFE and fold them in editor?
    Close enough!😎
  • 2
    Your component is probably too big and has too many responsibilities.
  • 1
    @rephiscorth I'll double check it again, maybe I'd split its responsibilities thanks man :)
Add Comment