Opened 3 months ago

Closed 3 months 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 Changed 3 months ago by Mariusz Felisiak

Resolution: duplicate
Status: newclosed

Thanks for the ticket.

I would like to see Django support at least one of the many modern JS frameworks.

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.

comment:2 Changed 3 months ago by yopknopixx

Resolution: duplicate
Status: closednew

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 Changed 3 months ago by Mariusz Felisiak

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top