Chapter 2. A sample isomorphic app
Listing 2.1. Babel configuration—babelrc
Listing 2.2. Running the server with Babel—src/server.js
Listing 2.3. Webpack configuration—webpack.config.js
Listing 2.4. Browser entry point—src/main.jsx
Listing 2.5. App (top-level component)—src/components/app.jsx
Listing 2.6. Featured component—src/components/featured.jsx
Listing 2.7. Recipes component—src/components/recipes.jsx
Listing 2.8. HTML template component (server only)—src/components/html.jsx
Listing 2.9. Action creators for recipes and featured data—src/action-creators.es6
Listing 2.10. Reducers—src/recipe-reducer.es6
Listing 2.11. Using initialState to start Redux—src/init-redux.es6
Listing 2.12. Redux and React setup—src/main.jsx
Listing 2.13. Connecting the app component to Redux—src/components/app.jsx
Listing 2.14. Set up the root route—src/app.es6
Listing 2.15. Isomorphic view middleware data fetching—src/middleware/renderView.jsx
Listing 2.16. Isomorphic view middleware view render—src/middleware/renderView.jsx
Listing 2.17. Add code for main.jsx—src/main.jsx
Listing 2.18. Using initialState to start redux—src/init-redux.es6
Chapter 3. React overview
Listing 3.1. First React render—html/Chapter_3_1/index.html
Listing 3.2. Rendering multiple HTML tags—html/Chapter_3_1/button.html
Listing 3.3. DOM markup for button example
Listing 3.4. JSX Button component—Chapter_3_4/buttonBasic.jsx
Listing 3.5. List item—components/Chapter_3_4/listItemFunctional.jsx