Skip to content

Instantly share code, notes, and snippets.

@oeway
Created May 6, 2019 22:04
Show Gist options
  • Save oeway/a9f04ec5c23a05025542574b92268535 to your computer and use it in GitHub Desktop.
Save oeway/a9f04ec5c23a05025542574b92268535 to your computer and use it in GitHub Desktop.
<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