1
0
Fork 0

🚧 CFP React update

This commit is contained in:
Joost De Cock 2019-05-03 14:10:11 +02:00
parent 83796818b2
commit 444ff667d6
2 changed files with 7 additions and 5 deletions

View file

@ -4,8 +4,8 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react": "^16.8",
"react-dom": "^16.8",
"react-scripts": "2.0.4",
"@freesewing/core": "alpha",
"@freesewing/plugin-bust": "alpha",

View file

@ -10,9 +10,11 @@ import Pattern from "pattern";
class App extends Component {
render() {
console.log(freesewing);
console.log({ Pattern });
return <Workbench />;
let instance = new Pattern();
let config = instance.config;
return (
<Workbench freesewing={freesewing} Pattern={Pattern} config={config} />
);
}
}