How does react project starts

 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


every react project is meant to develop html 



server request , in response it load html page and taht will be showin in ui



if need links or some other omponnetn 
that hetml page tells fetch from server 

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

create cartoon video using ai

  https://www.piclumen.com/ using this we can crate cartoon photos https://hailuoai.video/ its not free upto 1000 points we canuse it for fr...