Skip to content

Instantly share code, notes, and snippets.

@mathisonian mathisonian/index.js
Last active Aug 14, 2016

Embed
What would you like to do?
hyperterm plugin test
exports.decorateTerm = (Term, { React, notify }) => {
// this library calls require('react') internally
const Spinner = require('react-spinner');
return class extends React.Component {
render () {
const children = [];
children.push(React.createElement(Term, Object.assign({}, this.props, { key: 'key1' })));
children.push(React.createElement(Spinner, {key: 'key2'}));
return React.createElement('div', {style: {width: '100%', height: '100%', position: 'relative'}}, children);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.