Code Monkey home page Code Monkey logo

redux-boozer-web-0716's Introduction

Redux Cocktails

Today, we'll be using Redux to build out an app to list out cocktails. We'll use the same 'Master/Detail' format that we did in lecture. We should have:

  1. A component to render a NavBar and any children.
  2. A List of All Cocktails
  3. A Cocktail Detail page for each cocktail.

Requirements

  1. You must use React-Router so that visiting a given URL maps correctly to a Component.
  2. Create a reducer to respond to an action called 'FETCH_COCKTAILS'. This should return a new array representing the action's payload.
  3. Create an action creator called fetchCocktails that returns an action and a payload representing a list of cocktails.
  4. In our index.js file, create a new store using a rootReducer (hint: You'll need to create a rootReducer using combineReducers)
  5. Once you create the store, wire it up to the neccessary components using Provider, mapStateToProps, and connect
  6. Before rendering your app to the DOM, go ahead and dispatch your fetchCocktails action.

This is hard. It's supposed to be hard. Work together - you guys can do this!

redux-boozer-web-0716's People

Contributors

ipc103 avatar tonymaibox avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.