GithubHelp home page GithubHelp logo

szrharrison / 30_react-router-lecture-web-031317 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-curriculum/30_react-router-lecture-web-031317

0.0 1.0 0.0 24 KB

HTML 3.24% JavaScript 96.76%

30_react-router-lecture-web-031317's Introduction

React Router

  1. When the URL is '/students', we should see the list of all the students names
  • Each name should be a link to "/students/:id"
  1. Clicking on that link should change the path and render out the entire list PLUS a student detail page
  1. When the URL is '/students/new'

HARD

  • Switch √

  • render √

    • Where to evaluate JS? Curly Braces?
  • match √

  • browserHistory

  • props.children???

  • After deleting - how to redirect?

  • updating the state when the student gets deleted

  • sending through the delete request to the API

CHALLENGE

Update

  • We should be able to update each student
  • Visiting '/students/:id/edit' should show the update form
  • Submitting the form should change it in the database
  • The student form values should be pre-populated with that student's values
  • After submitting, we should go back to the student show page

Hints

  • defaultValue for inputs
  • refs

Delete

  • Each student show page should have a delete button
  • When I click that button, we shoudl delete the student from the database
  • We should delete them from the state of the StudentsContainer
  • We should redirect to '/students'

30_react-router-lecture-web-031317's People

Contributors

ipc103 avatar szrharrison avatar

Watchers

 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.