Skip to content

Commit 1b8a4dd

Browse files
Update README.md
1 parent df0e627 commit 1b8a4dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/react/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
## React WebUI Example
22

33
This is a basic example of how to use WebUI with React to generate a portable single executable program. WebUI will run the internal web server and use any installed web browser as GUI to show the React UI.
4-
__NOTE: To make an executable for python, look into pyinstaller or similar type libraries (pathing may have to be automated in some places to differentiate runtime and built file locations)__
54

6-
A simple Python script `vfs.py` is used to generate `vfs.h` to embed the whole react's build folder into the portable single executable program.
5+
__NOTE: To make an executable for python, look into `pyinstaller` or similar type libraries (pathing may have to be automated in some places to differentiate runtime and built file locations)__
76

87
![Screenshot](webui_react.png)
98

@@ -16,7 +15,7 @@ A simple Python script `vfs.py` is used to generate `vfs.h` to embed the whole r
1615
1. Run `npx create-react-app my-react-app` to create a React app using NPM
1716
2. Add `<script src="webui.js"></script>` into `public/index.html` to connect UI with the backend
1817
3. Copy or make your own vfs functions similar to how it's done in main.py
19-
4. Build the react-app portion with `npm run build`; This step must be done every change you make to the react portion of the app
18+
4. Build the react-app portion with `npm run build`; This step must be done for every change you make to the react portion of the app
2019
5. Now, run `python main.py` or whatever your main entry script is.
2120

2221
### Other backend languages examples:

0 commit comments

Comments
 (0)