Skip to content

Latest commit

 

History

History
74 lines (43 loc) · 3.03 KB

MAKEME.md

File metadata and controls

74 lines (43 loc) · 3.03 KB

Homework React Week 4

Todo list

  1. Practice the concepts
  2. React exercises
  3. Code along
  4. PROJECT: Hack Your Weather IIII

1. Practice the concepts

Let's finish the online exercises. Start from Review Using Props with Stateless Functional Components until the last exercise Render React on the Server with renderToString:

2. React exercises

No exercises this week

3. Code along

Create a new GitHub repository for this project. It's a portfolio piece!

In this project you'll be working with the CSS framework Material UI that allows you to use Material Design with React! It's very common to work with CSS frameworks when doing real life project, so best to prepare for it as soon as possible.

Have fun!

4. PROJECT: Hack Your Weather IV

Make sure you're building on last week's codebase.

This week we'll finish our application by integrating 2 things: client-side routing with React-Router-Dom and charting our data (in either hourly or five day forecasts).

1. Setup

  1. Install the following packages: React Router Dom and Recharts
npm install react-router-dom recharts

2. Requirements

At the end of the week the user interface of your application will look mostly the same, but with an additional page:

Week 4 Wireframe

Here are the requirements your project needs to fulfill:

  • Divide your page into 2 different routes (/ and /:cityId), using react-router-dom
  • Allow users to click on the searched city to open the city page
  • The city page will be on a different route identified by the city id (make use of the <Link> component given by react-router-dom)
  • On the city page there will be a chart (made with recharts) that displays the correct data for 5-day forecast
  • Add a "Back" button to go back to /, on the city page
  • Redeploy your site

Hints:

  • Read the documentation to get a basic sense of what problems both react-router-dom and recharts are trying to solve, and to learn how to use them
  • Make sure to have a clear overview of your application so far, before you add this week's features to it

SUBMIT YOUR HOMEWORK!

After you've finished your list it's time to show us what you got! Upload all your files to a forked repository (a copy from the original, which in this case is the React repository) using GIT. Then make a pull request to your teacher's forked repository.

If you need a refresher, take a look at the following guide to see how it's done.

The homework that needs to be submitted is the following:

  1. Project: Hack Your Weather IV

Deadline Saturday 23.59 CET