0

Is React and ReactDOM libraries reside in running html page(single page) at browser?

Are other js libraries (installed in npm_modules) are also reside in running HTML page at browser ?

Or all above libraries and actual code (programmers) converted to single/multiple JS files and each time when SPA page loads it has all these files but in converted(bundled) manner?

My understanding is React is client side library that means it is present at html page while page is running in browser.

Apology for very basic questions but these questions in my mind many days and couldn't find satisfactory post or I missed.

  • So the simple answer to your question is yes. – codemonkey Jan 20 '21 at 17:22
  • in Client Side rendering in ReactJS, your application is downloaded as `.js bundle` and is injected in runtime into `
    – Rohit Khanna Jan 20 '21 at 17:23
  • @RohitKhanna : So In browser there 5 ReactJS application open then 5 times all the respective required dependancies ( libraries like React, ReactDom, loadash, redux, so on ... ) will be loaded ? – Nitin Daphale Jan 21 '21 at 15:28
  • @NitinDaphale, If not loaded each time, dont you think there will be a conflict because there is a possibility, each of these five applications use different versions of libraries (may be conflicting versions, if app is quite old) and one of them may start to behave weirdly just because browser caches the library of a different version due to parallel running app? – Rohit Khanna Jan 21 '21 at 16:11
  • @RohitKhanna: Thanks , that makes sense. – Nitin Daphale Jan 21 '21 at 16:49

0 Answers0