Implement wires module in React

New project to rewrite this in React.
This commit is contained in:
Daniel Sinn
2019-11-25 08:35:03 -05:00
parent ada083c346
commit 28a4d8c4f8
20 changed files with 13938 additions and 150 deletions
+38
View File
@@ -0,0 +1,38 @@
import PropTypes from "prop-types";
import React, {Component} from "react";
class KtaneModule extends Component {
constructor(props) {
super(props);
this.resetState();
}
getTitle() {
throw new Error("getTitle() not implemented.");
}
mainRender() {
throw new Error("mainRender() not implemented.");
}
render() {
return (
<section id={this.props.id}>
<h2>{this.getTitle()}</h2>
{this.mainRender()}
</section>
);
}
resetState() {
throw new Error("mainRender() not implemented.");
}
}
KtaneModule.propTypes = {
id: PropTypes.string
};
export default KtaneModule;