kopia lustrzana https://github.com/branchwelder/embryoid
32 wiersze
681 B
JavaScript
32 wiersze
681 B
JavaScript
import React from "react";
|
|
|
|
import "./TemplateAction.css";
|
|
|
|
export default class Embroidery extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = {
|
|
flag: true,
|
|
};
|
|
}
|
|
backendMethod() {
|
|
fetch("/runBackendMethod", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify({
|
|
method: "templateActionMethod", // The method to run
|
|
actionID: this.props.action.id,
|
|
}),
|
|
})
|
|
.then((res) => res.json())
|
|
.then((asdf) => {
|
|
console.log(asdf);
|
|
});
|
|
}
|
|
render() {
|
|
return <div className='background'>Content goes here!</div>;
|
|
}
|
|
}
|