Can react be used as a utility full stack web app?

Priyansh Jain - Jul 16 '18 - - Dev Community

I was just wondering, that since react is/has

  • ES6 compatible
  • NPM support
  • Request Support

Consider the case where we have a UI based interface to some data that is in a different website, where we use APIs/requests to fetch data and render it to the frontend. Can react be used as a standalone frontend+backend solution for small task stuff?

Since react has it's own routing mechanism, can the processing that an express app does be done via imported libraries in react itself? Assume that the size transferred in requests is very less and processing the response is basic string manipulation/html parsing, and there is no requirement for a database, the client's storage should do.

Why did i think of this? No need to maintain a server that acts as a middleware to the react app.

EDIT: For such an app, compile the code into react native, and every user who uses the app is their own server. Possible?

Thoughts?

. . . . . . . . . . . . . .
Terabox Video Player