Last active
October 25, 2019 12:44
-
-
Save guidone/f431d8e8c4805d19262f22f149b33fd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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