Bootstrap the application
The application starting point is the page src/index.ejs. You won't find any script in this file. Webpack will insert all needed imports (CSS and JavaScript). You will also find an HTML div
element which will host the application.
The entry point for the JavaScript
code is src/index.js, which renders the Root
React component into the div
element aforementioned. The Root
component render
methodes returns a Provider
component from React Redux.
The Provider
component is passed a store
property with a value provided by the src/js/store/configure-store.js file. This file returns the result of Redux createStore applied to the following arguments:
reducer
: the application main reducer;preloadedState
:undefined
at this stage.enhancer
: a composition of two Redux middlewares (Redux Thunk and Redux Logger) and of the Redux DevTools extension.
The Provider
component initiates the application state and makes it available to all the components.
The main "visual" component of the application is PoguesApp