2021年1月2日星期六

How index.js file is able to communicate with index.html?

In React project both index.html and index.js file are inside different folder and there is no link in between these two file. Then how we are able target div whose id is root of HTML file by using document.getElementById("root") inside index.js file.

please answer this in easy language because i have just start learning this , I am compeletly begineer.

https://stackoverflow.com/questions/65466320/how-index-js-file-is-able-to-communicate-with-index-html December 27, 2020 at 09:34PM

没有评论:

发表评论