Skip to content

Instantly share code, notes, and snippets.

@guidone
Last active October 25, 2019 12:44
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/f431d8e8c4805d19262f22f149b33fd9 to your computer and use it in GitHub Desktop.
Save guidone/f431d8e8c4805d19262f22f149b33fd9 to your computer and use it in GitHub Desktop.
const { Button, Placeholder } = RSuite;
const MyPage = () => {
return (
<div>
<br />
Bella page
<br />
<Placeholder.Paragraph />
<br />
<Button appearance="primary" onClick={() => alert('clicked!')}>Click Me!</Button>
</div>);
};
class Pippo extends Plugin {
static description = {
id: 'my-plugin-2',
name: 'My Plugin 2',
description: 'Boilerplate for plugin 2',
version: '0.6'
};
constructor(props) {
super(props);
this.register('page', MyPage, {
id: 'my-page-2',
label: 'My Super Page 2'
});
}
}
return Pippo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment