Problem Statement
What is the use of index.js and App.js?
Explanation
`index.js` is the main entry that renders the root component into the DOM using `ReactDOM.createRoot`. `App.js` is the top-level component where you compose routes and layout.
Code Solution
SolutionRead Only
ReactDOM.createRoot(document.getElementById('root')).render(<App />);Practice Sets
This question appears in the following practice sets: