Learn React/Redux

Welcome to my react/redux tutorial.

Get Started

  1. Clone the project: git clone git@github.com:lior-a/react_redux_tutorial.git.
  2. Inside the project folder run npm install.
  3. Run npm run start.
  4. Go to: http://localhost:3334

Plan

  • step 1: print all users from stub (files: UsersList.js, Users.js)

  • step 2: add form, add new user (name + age inputs - files: userForm.js, usersList.js, container.js, actions.js, reducers.js)

  • step 3: add family name (files: userForm.js, usersList.js, container.js, actions.js, reducers.js)

  • step 4: add delete functionality (files: Users.js, UseersList.js, container.js, actions.js, constants.js, reducers.js)

Where you can take it:

  • Remove data from inputs once new user is added + hide the form.
  • Add more info to the data/stub/form/table (Example: email, permission, title, created at etc..).
  • Add "Table is empty." msg if there are no users.
  • Add edit feature.
  • Add validation, don't allow empty fileds for example.
  • Filters! once user click on "Name" in the table - fitler the result by alphabetical order.
  • Work with firebase(reactfire) and kill that stupid stub! (on top of onAdd, do ajax request, and remove the stub file for a request from firebase)
  • Pagination - divide the table into smaller portion of data.

The best way to do any of those features is to look for tutorials or follow the current code and modify it to fit with the new feature.

Screen Shots

alt tag

When user click "Add User": alt tag

Files Structure

alt tag