Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create instanceService #733

Merged
merged 14 commits into from
Jun 7, 2022
Prev Previous commit
Next Next commit
build: fix web script failed
  • Loading branch information
mortalYoung committed Jun 2, 2022
commit 43a4188e1fbe22700b06fa2e9168963555f9528b
19 changes: 11 additions & 8 deletions build/web/app.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import { Workbench, MoleculeProvider } from '../../esm';
import { create, Workbench } from '../../esm';
import '../../esm/style/mo.css';

const App = () => (
const moInstance = create({
extensions: [],
});

export const App = () => moInstance.render(<Workbench />);

ReactDOM.render(
<StrictMode>
<MoleculeProvider>
<Workbench />
</MoleculeProvider>
</StrictMode>
<App />
</StrictMode>,
document.getElementById('root')
);

ReactDOM.render(<App />, document.getElementById('root'));