2 ms·
Here's roughly how I do it[1] ... import Button from '@material-ui/core/Button'; export MyComponent = ({actions}) => ( <Button variant=
by tracker1 8y ago
Here's roughly how I do it[1] ...
import Button from '@material-ui/core/Button';
export MyComponent = ({actions}) => (
<Button
variant="outlined"
color="primary"
onClick={actions.save}
>
Save
</Button>
);
[1] https://material-ui.com/demos/buttons/ https://material-ui.com/demos/buttons/