You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2019. It is now read-only.
Currently, one has to specify a rather long path to import a component, e.g. react-islands/components/Button. As we aren't going to add any other staff to the library except components, it's might be handy if the user could import modules in a more concise way:
importButtonfrom'react-islands/Button';
We might genereate an index.js that exports all modules as well,
import{Button,Checkbox}from'react-islands';
but I'd prefer to not recommended this way of usage, as it led to bundling the whole library to the user's project, even if only some components were used.
Currently, one has to specify a rather long path to import a component, e.g.
react-islands/components/Button. As we aren't going to add any other staff to the library except components, it's might be handy if the user could import modules in a more concise way:We might genereate an
index.jsthat exports all modules as well,but I'd prefer to not recommended this way of usage, as it led to bundling the whole library to the user's project, even if only some components were used.
/cc @vodkabears @pasaran