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

form component #7

Open
rmorshea opened this issue Nov 30, 2022 · 0 comments
Open

form component #7

rmorshea opened this issue Nov 30, 2022 · 0 comments

Comments

@rmorshea
Copy link
Contributor

rmorshea commented Nov 30, 2022

Add a Form component a la react router's.


Note by @Archmonger:

We have a reactpy-django PR has proven an effective method to generate forms within ReactPy.

In summary...
We will need to intercept the <form> onSubmit event, serialize FormData into JSON, transport that form data to back to the server, then re-hydrate the input elements on the server using this new data.
Serializing file fields is a separate problem, and will require some more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants