Answer the question
In order to leave comments, you need to log in
A few questions about react?
Hello!
I just started learning React (before that, just layout, a little php on xampp). There were a couple of stupid questions, if you explain I would be very grateful
1. In many tutorials, npm is used to run react applications. What for? React is just a js library that can be connected using the same cdn and just open the .html in the browser.
2. (continuation to question 1). I suppose they start the server with npm start and hang it on the local port, is that so? But then again, why, if the file can just be opened in the browser? And what if the back is on the puff? It turns out that puff and node files will be mixed? This is a bunch of unnecessary files
3. In many tutorials, various imports of various libraries are also prescribed. Is this referring to react or nodejs app?
I apologize in advance for stupid questions
Answer the question
In order to leave comments, you need to log in
Many tutorials use npm to run react applications. What for? React is just a js library that can be connected using the same cdn and just open the .html in the browser.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question