Skip to content

Instantly share code, notes, and snippets.

@guidone
Last active October 25, 2019 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guidone/d8c93524bcd1d6600d3cb1afa212e093 to your computer and use it in GitHub Desktop.
Save guidone/d8c93524bcd1d6600d3cb1afa212e093 to your computer and use it in GitHub Desktop.
const { Button, Paragraph } = RSuite;
const MyPage = () => {
return (
<div>
<br />
Bella page
<br />
<Button appearance="primary" onClick={() => alert('clicked!')}>Click Me!</Button>
</div>);
};
class Pippo extends Plugin {
static description = {
id: 'my-plugin',
name: 'My Plugin',
description: 'Boilerplate for plugin',
version: '0.4'
};
constructor(props) {
super(props);
this.register('page', MyPage, {
id: 'my-page',
label: 'My Super Page'
});
}
}
return Pippo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment