Answer the question
In order to leave comments, you need to log in
How to download a site in react?
How can I download a site that is written in react.js? The developer who uploaded the site to the hosting uploaded the entire project, including node_modules ts files, in general, not only the files that react compiled, but also all the others that were in the project folder, can I somehow download them all at once, and not one by one?
Answer the question
In order to leave comments, you need to log in
There is such a way. Connect to the server hosting the site via ftp or ssh and copy files and directories to your computer.
Of course not, unless there are very obvious security holes in the server config. In general, there is no concept of "site" in react.js. There is an application that works with the data that the backend gives at a given time. After half a second, the data from the backend may be different. For another user, the data may be different or partially different. "Download site" can only be done on behalf of user X at time T.
As for "node_modules, .ts files, etc.", react.js compiles to one or more js files, which are very different from what the programmer writes in them. And of course, there is no .ts there, the browser cannot execute TypeScript. the contents of node_modules will partly be present in these .js files, partly because after tree shaking.
And in general, it is a shame not to know this if you want to do illegal actions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question