react-rainbow
react-rainbow copied to clipboard
feat: support `import Button from 'react-rainbow-components/Button'`
Support import Button from 'react-rainbow-components/Button'
Is your feature request related to a problem? Please describe. When importing components like this:
import { Button, Calendar } from 'react-rainbow-components';
you are importing the entire library which has a large bundle size, then if you instead import components like this:
import Button from 'react-rainbow-components/Button';
import Calendar from 'react-rainbow-components/Calendar';
you are only importing files related to Button and Calendar components thus decreasing the final bundle size of your app
https://github.com/nexxtway/react-rainbow/issues/1339 almost the same