Last active
October 25, 2019 12:37
-
-
Save guidone/d8c93524bcd1d6600d3cb1afa212e093 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, 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