Skip to content

Commit 48d8937

Browse files
authored
Add index.js entry point to client/src for React application
- Created index.js in client/src as the main entry point for the React application. - Ensures that the React build process can find the required entry file to complete successfully. - Set up basic ReactDOM render logic, importing the main App component and rendering it to the root div in index.html. This update resolves build errors related to the missing index.js file in the client/src directory.
1 parent ecd422a commit 48d8937

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

client/src/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import App from './App';
4+
5+
ReactDOM.render(
6+
<React.StrictMode>
7+
<App />
8+
</React.StrictMode>,
9+
document.getElementById('root')
10+
);

0 commit comments

Comments
 (0)