Use of React in backend and small projects

Asked

Viewed 77 times

0

You can integrate the React application with some back end language?

I can apply React to small projects or only when needed?

React came to break the standard web development paradigm, where I create separate files, each with a task, for example, index.html containing all the HTML of the site and a file javascript.js containing all the Javascript I will use on the page? Because as I understand it, with React I join HTML and Javascript on the same page.

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.

1 answer

2

You can integrate the React application with some back end language?

React is just a way to manipulate front-end, then all you can do in the front-end is available when you use React, including accessing back-end. In fact he has some facilities to work better with what comes from back-end and how to send to him.

If that’s what you’re talking about integrating, then yes. If you’re talking about using React on back-end, I would say yes, but it is a little different, it is possible to take advantage parts. This is a technique isomorphic and can be obtained more easily with tools such as Redux. You can see more in one article. And a example. And another.

I can apply React to small projects or only when needed?

Power always can, but needs to analyze if it should. I would avoid heavy things like React for small and simple things, but it depends on the goal. I have a tendency not to use frameworks unless you prove yourself very useful, and tend to use something lighter like the Vue.js until you need something more complete.

React is just a tool of what you are describing about SPA.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.