https://github.com/jennasys/pyuseref
Python version of useRef demo at: https://dev.to/ziratsu/the-useref-hook-in-react-3h98
https://github.com/jennasys/pyuseref
parcel python react transcrypt tutorial
Last synced: 2 months ago
JSON representation
Python version of useRef demo at: https://dev.to/ziratsu/the-useref-hook-in-react-3h98
- Host: GitHub
- URL: https://github.com/jennasys/pyuseref
- Owner: JennaSys
- Created: 2021-12-18T22:41:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T20:30:00.000Z (10 months ago)
- Last Synced: 2025-02-28T19:14:01.132Z (3 months ago)
- Topics: parcel, python, react, transcrypt, tutorial
- Language: Python
- Homepage:
- Size: 110 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## [React to Python](https://pyreact.com)
### Python React version of useRef Tutorial at:
https://dev.to/ziratsu/the-useref-hook-in-react-3h98- **app.py**: useRef demo
- **app_multi.py**: multi-ref demo
- **app_state.py**: using useState (controlled inputs) instead of useRef for comparison- **pyreact.py**: React wrapper functions
### Setup:
$ `python3.9 -m venv venv`
$ `. ./venv/bin/activate`
$ `pip install -r requirements.txt`
$ `npm install`### Build and run with:
$ `npm start`The application will be served up on Parcel's default port at:
`http://localhost:1234`Open the developer console in the web browser to see the output.
Change `script src` in **index.html** to try different **app** modules