Feature Idea: Native JSX support in Django templates for a modern full-stack harmony

Hello Django Community,

First of all, thank you for this incredible framework. Django’s backend, ORM, security features, authentication, and admin system are absolutely amazing and work extremely well.

However, when building modern user interfaces, traditional HTML templates can sometimes feel limited compared to technologies like JSX. Many developers today want to combine Python for the backend with React/JSX for the frontend. Currently, connecting these technologies often requires additional configuration such as Django REST Framework, CORS setup, separate development servers, and extra tooling.

I am not asking Django to replace React or change its philosophy. Django is already excellent at what it does: backend development, data management, security, authentication, and APIs.

The idea is simply to make the connection between Django and modern frontend technologies like React, JSX, and Vite easier and more accessible.

Just like Django simplified many aspects of web development with features like the admin interface, ORM, forms, and security tools, an official integration option or a smoother workflow for JSX/Vite/React could help developers build full-stack applications with less configuration.

The goal would not be to remove Django templates, but to give developers more flexibility:

  • Python for backend logic

  • Django for databases, authentication, permissions, and APIs

  • JSX/React for modern and dynamic user interfaces

A smoother Django + React workflow could help many developers create beautiful applications faster while keeping all of Django’s strengths.

It would be wonderful if Django could provide better native support or an official integration path for JSX within its project structure. A more unified ecosystem where Django can seamlessly work with modern frontend components would bring a new level of harmony to full-stack Python development.

Are there any plans, discussions, or ideas around improving React/JSX integration in future Django releases?

Thank you for your time, your hard work, and for listening to the community.

Best regards,
Laura Lord


Hi Laura.

Couldn’t find much discussion or any proposals for Django to adopt one particular framework.

Some documentation is definitely under development to help ease using JS frameworks in general. This howto - #30296 (Add how-to guide for JavaScript frameworks integration) – Django - includes a matrix of 3rd party integration tools (mainly at the bundler level) which mentions django-vite. That might be worth checking out.

Overall though I think native support of JSX (let alone all of React) would a massive undertaking, both philosophically and effort wise. For example if we’re integrating JSX, are we obligated to support Vue and Angular as well? Would we need to include and maintain React server components and server side rendering too?

We certainly do still want to smooth co-utilisation of frameworks. Hence the howto. Are you finding most of the pain points occur during coding and development? Or is it primarily about production and deployment complexity?

Cheers
James