React main entry point [closed] React main entry point [closed] reactjs reactjs

React main entry point [closed]


Well I structure my React apps like this:

index.js - calls ReactDOM.render() on app.jsx, which is the root React component.

bundle.js - This file is where index.js and all the JSX components are merged after being compiled into regular JavaScript using Webpack (hence bundle).

index.html - bundle.js is imported into the body of this html file through script tag, this is the entry point.