Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into mol-filename-index-76…
Browse files Browse the repository at this point in the history
…-take3
  • Loading branch information
sverhoeven committed Aug 10, 2022
2 parents 36f0c52 + 32cc0da commit f546cbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ Create vite React project and install the core package with
npm create vite my-ivresse-app -- --template react-ts
cd my-ivresse-app
npm install
npm install @i-vresses/wb-core bootstrap@4
npm install @i-vresse/wb-core bootstrap@4
```

Rewrite `src/main.tsx` to include wrapper component for global state, notifications and drag-n-drop support.

```jsx
...
import { Wrapper } from '@i-vresse/wb-core'
import App from './App'

ReactDOM.render(
<React.StrictMode>
Expand All @@ -45,13 +46,11 @@ Rewrite `src/App.tsx` to combine the components of the `@i-vresse/wb-core` packa

```jsx
import { useEffect } from "react";
import { WorkflowUploadButton } from "./WorkflowUploadButton";
import {
CatalogPanel,
FormActions,
NodePanel,
WorkflowPanel,
Wrapper,
} from "@i-vresse/wb-core";
import { useSetCatalog } from "@i-vresse/wb-core/dist/store";
import { prepareCatalog } from "@i-vresse/wb-core/dist/catalog";
Expand Down

0 comments on commit f546cbe

Please sign in to comment.