How do React & NodeJS work together?

Can you tell me more about the relationship between them? I want (for example) to write a small instrument that plays audio files on my raspberry pi. Can I then fully play the player and player interface in React, and then just connect to node to get the actual files?

Or, in general, but the same thing if I want to write an application that does certain things (writes files, records audio, changes system settings, etc.) that will all be executed in nodes, but if I want to have an interface Would I use something like React?

I'm a little confused, but I hope this question is valid!

+8
reactjs react-native
source share
4 answers

Node and React can be used together.

There is even a MERN stack that helps with this:

MERN is a forest tool that makes it easy to create generic applications using Mongo, Express, React, and NodeJS. This minimizes setup time and speeds up work using proven technologies.

See: http://mern.io/

But you can use React with any other Node framework, not just Express. React can work with any REST API, so anything you use to create a REST API can be used by an interface written in React.

Some other options include: Hapi, Restify, LoopBack. See details

+6
source share

from the official React Documentation React is the "JavaScript library for creating user interfaces." In very irrigated conditions (and I mean irrigation). The reaction can be seen as a template library (please do not shoot me).

What I learned about React is more like a ā€œVā€ in MVC. It provides you with a way to present the user interface using JavaScript and JSX. I know a little about the various tutorials, I really like working with React.

+1
source share

Yes, these two think that they can work together, I am currently working on such a project. I will indicate that the main thing here. This is where you put your routing. It goes to the Node.js server or React Router. This is important because it determines where the application logic should be.

0
source share

ReactTS is the forest engine for React on ASP.NET Core. Very powerful and very fast - it will generate your entire application with the click of a button. You can also customize templates. Check here ... http://bssdev.biz/DevTools/React-Turbo-Scaffolding-Free-Download

0
source share

All Articles