Read the "Getting Started" section for a refresher on how to create a new React project, and then you can add the data from this repository in.
“Our state government possesses vast treasure troves of valuable information and reports: from health, business and public safety data to information on parks, recreation, labor, and transportation … The Open New York web portal will allow researchers, citizens, business and the media direct access to high-value data, which will be continually added to and expanded, so these groups can use the data to innovate for the benefit of all New Yorkers.” – Governor Cuomo, State of the State Address, January 9, 2013
In an effort to increase government transparency, New York is committed to providing its state data to its citizens. Yet, it is up to the citizens of New York to USE this data and do something with it.
In this lab you are going to take New York State education data downloaded from The Open New York web portal and build an easy to read website with it.
For this lab, you will be trying to build a website that matches the mockup provided above.
To start, create a new React project.
As a reminder, one way to do this is to navigate to the folder where you want your project and type the following into your command line:
npx create-react-app YOUR-APP-NAME
cd YOUR-APP-NAME
It's probably a good idea to pick a better app name than the "YOUR-APP-NAME" listed above. Maybe something like "EdDataApp" since we'll be using this to display educational data.
Download the education_data.js file in this repository and add it to the "src" folder in your React project.
Don't forget to import the data into the App.js file!
-
Add a table header row to your App.js file To learn more about tables, head over to the W3schools documentation on HTML tables: https://www.w3schools.com/html/html_tables.asp
-
Create a component that displays a table row and can accept props.
-
Pass the first school's data into your component as props. This should result in having the data displayed on the table.
-
Using your table row component, display the first five schools data on your table.
-
Display ALL the school data on your table.
-
Rewrite this using CSS grid or CSS flexbox. Or, come up with any other fun or interesting way you can come up with to display this data!