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

ENDOC-570 mfe config #570

Merged
merged 4 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions vuepress/docs/next/tutorials/create/mfe/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Create the Bundle Project

1. Initialize a new bundle project by scaffolding the default files and folders:
1. Initialize a new bundle project with the default files and folders:
``` sh
ent bundle init simple-bundle
```
Expand All @@ -24,15 +24,13 @@

1. Create a React app in `/simple-bundle/microfrontends/`:
``` bash
cd microfrontends
npx create-react-app simple-mfe --use-npm
npx create-react-app microfrontends/simple-mfe --use-npm
```
Assign the same bundle name you chose when adding an MFE to overwrite the empty "simple-mfe" folder.

2. From the MFE folder, start the app:
2. Start the new app
``` bash
cd simple-mfe
npm start
ent bundle run simple-mfe
```
The React app should open in your browser at `http://localhost:3000`.

Expand Down Expand Up @@ -92,16 +90,6 @@ You’re now using a custom element to display a React app.

1. [Publish the bundle project](../pb/publish-project-bundle.md)

### Edit the Widget

1. In your App Builder, go to `Components` → `MFE & Widgets`

2. Scroll down to the "User" section and click on "simple-mfe"

3. Edit the "Title" fields as desired and upload or select an icon of your choice

4. Click `Save`

### View the Widget

Place the React micro frontend onto a page to see it in action.
Expand Down
Loading