import React from 'react';import ReactDOM from 'react-dom';import Button from 'react-islands/components/Button';ReactDOM.render( React.createElement(Button, { theme: 'islands', size: 'm' }, 'Click me!'), document.getElementById('root'));
You can use named import as well, however this may lead to the unwanted growth of the bundle.
Considder to use technics like tree-shaking in this case.
import { Button, Link } from 'react-islands';// ...