![]() Node is handling requests from the browser, coordinating access to the server's file system, managing network I-O, performing cryptographic evaluation, etc. React is handling component lifecycles, applying dynamic style rules, processing in-browser data, and making API calls. While the development pattern of frontend and backend appear similar, they are doing different things. It is a javascript engine that is configured to optimize DOM manipulation. React is a whole separate animal it is a framework that renders its own DOM in the browser. Node executes outside the browser, whereas React / Vue / Angular / etc are in-browser javascript frameworks. NodeJS is not just regular javascript, it is a javascript runtime that sits on top of a C++ engine called V8, provided by Google. How do the two, React and NodeJS, integrate together to create a fully-functioning web app? I have yet to see something online that clearly breaks down how the two interact. ![]() ![]() I was under the impression that I would just use NodeJS to host the backend, but after seeing that I'm literally having to create an entire website with NodeJS, I don't understand how I'm supposed to use React and NodeJS together. I have never worked with NodeJS before so I am a bit confused. I'm confused because right now, it's appearing to be that React and NodeJS do the SAME THING. But I'm doing NodeJS tutorials, and I can create a website using NodeJS too. But because I needed a backend, I decided to use NodeJS. What I don't understand (and this is after following tutorials online on setting up a React project and a NodeJS project) is why I have to create an instance of each.įor example, in my React project, I managed to create a website. ![]() ![]() I understand that React is frontend, and NodeJS is the backend that allows Javascript code to function outside of a browser. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |