A
A
andreyAmaterasu2020-07-13 17:19:04
Django
andreyAmaterasu, 2020-07-13 17:19:04

Purely Django or in conjunction with React?

I started writing a web application in Django, using project application templates as a front-end. I came across a series of articles about using Django with React and I was wondering if using React for the front is considered the best approach, or should it only be used when needed? And how to determine if an auxiliary framework is required in the face of React, what exactly can it give and how can it help in development?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Shumov, 2020-07-13
@inoise

Frameworks such as React are well suited for SPA applications where indexing is not needed and when the team has a separate frontender. In all other cases, it is worth writing in the old fashioned way.

I
Islam Ibakaev, 2020-07-13
@devellopah

so simple cooler, but more difficult
if the budget is worthy of the restful api + react.js (vue.js) bundle, then take this bundle, otherwise you do it "the old fashioned way"

D
devdammit, 2020-07-13
@devdammit

Depending on what problem you want to solve.
React for frontend is one of the leading view libraries and is quite versatile in 90% of cases.
The best practice is to develop a separate frontend application, the static of which spins behind the balancer and goes through the Rest API for data to your backend.
There is such a term React Stack. In the classic form, these are React, Redux (state manager), React-Router.
In your case, I recommend it. Mobx might also work, which you like)
State manager - is needed in order to store your state of the frontend application somewhere and change it not at the UI level, but at the data layer level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question