Created
May 6, 2019 22:04
-
-
Save oeway/a9f04ec5c23a05025542574b92268535 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
<docs lang="markdown"> | |
[TODO: write documentation for this plugin.] | |
</docs> | |
<config lang="json"> | |
{ | |
"name": "ReactJS-Demo", | |
"type": "window", | |
"tags": [], | |
"ui": "", | |
"version": "0.1.0", | |
"cover": "", | |
"description": "[TODO: describe this plugin with one sentence.]", | |
"icon": "extension", | |
"inputs": null, | |
"outputs": null, | |
"api_version": "0.1.3", | |
"env": "", | |
"requirements": [ | |
"https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js", | |
"https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js", | |
"https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js" | |
], | |
"dependencies": [], | |
"defaults": {"w": 20, "h": 10} | |
} | |
</config> | |
<script lang="javascript"> | |
var App = React.createClass({ | |
displayName: 'App', | |
render: function() { | |
return React.createElement('div', { }, 'Something something Dark Side'); | |
} | |
}); | |
ReactDOM.render( | |
React.createElement(App), | |
document.getElementById('app') | |
); | |
class ImJoyPlugin { | |
async setup() { | |
api.log('initialized') | |
} | |
async run(ctx) { | |
} | |
} | |
api.export(new ImJoyPlugin()) | |
</script> | |
<window lang="html"> | |
<div id="app"> | |
</div> | |
</window> | |
<style lang="css"> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment