Opened 3 years ago
Closed 3 years ago
#33045 closed New feature (wontfix)
Out-of-the box support for React JS
Reported by: | yopknopixx | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | React |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am not sure if this is a good idea, but I think it would be helpful to be able to integrate React without REST APIs. I would like to see Django support at least one of the many modern JS frameworks.
Change History (3)
comment:1 by , 3 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 3 years ago
Resolution: | duplicate |
---|---|
Status: | closed → new |
I understand you can integrate Django with any JS framework using an API. I was actually talking about a seamless integration sort of like the existing Django template system. As #30296 points out
"Many devs end up shotgun-debugging CORS or CSRF errors, which always results in insecure deployments"
This is especially a problem with new developers. An API also means having two separate applications for the front-end and the back-end which increases complexity.
What I have in mind is some functionality that could render React directly from a view.
comment:3 by , 3 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
What I have in mind is some functionality that could render React directly from a view.
I'm not really sure how this could work and even if it's feasible I don't think there would be consensus to add that complexity. You can raise the idea on the DevelopersMailingList to reach a wider audience and see what other think. See some previous threads.
Thanks for the ticket.
I'm not sure what you think Django should do more. As far as I'm aware you can integrate Django with many (any?) JS frameworks.
Closing as a duplicate of #30296.