Hello, I wish to use only a few components of SUI in my react application. Even if I import only a few components the whole library which is close to 1 MB uncompressed is imported. Is there anyway I can only import an element and its dependencies?
Any help is appreciated! Thank you.
With
import Button from 'semantic-ui-react/elements/Button'
I get
Module not found: Error: Can't resolve 'semantic-ui-react/elements/Button' in '...'
Does this requires a special Webpack configuration?
Thanks.
There was a typo, correct:
import Button from 'semantic-ui-react/dist/commonjs/elements/Button'