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

feat: support `import Button from 'react-rainbow-components/Button'`

Open LeandroTorresSicilia opened this issue 2 years ago • 1 comments

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

LeandroTorresSicilia avatar Mar 20 '22 15:03 LeandroTorresSicilia

https://github.com/nexxtway/react-rainbow/issues/1339 almost the same

empas avatar Jul 27 '22 12:07 empas