in react project
all projects bundled into a single file and then placed into server
npm run build
app.js, index.js, filed.js translate.js ==> bundle.js
also called as app.bunlde its called some identifier.js
server request , in response it load html page and taht will be showin in ui
so the browser send a second request to server
and give thebundle file to browser
public /index.html
src/index.js
index.html id ==root
in index.js id == root
which ide is related that id onl y it wille xecutes
index.js
i tis the first file executed in react
===
bundle.js
====
when index.html started loaded on the browser
inside the bundele it has index,hs
index.html root had indcated in bundle,js root
bundle.js telling it has root id , we have to access root id in index.html
No comments:
Post a Comment