Seat booking with Redux

Let's enhance our seat booking app by integrating the Redux.

We can install React Bindings explicitly, using the following command, since they are not included in Redux by default:

npm install --save react-redux

Now, we will extend our seat booking app by integrating Redux. There will be a lot of changes as it will impact all of our components. Here, we will start with our entry point.

src/index.js:

import React from 'react'import { render } from 'react-dom'import { createStore, applyMiddleware } from 'redux'import SeatBookingApp from './containers/SeatBookingApp'import { Provider } from 'react-redux'import { createLogger } from 'redux-logger'import thunk from 'redux-thunk'import reducer from './reducers'import { getAllSeats ...

Get Serverless Web Applications with React and Firebase now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.