The goal of this assignment is to pull a set of data, process it and show the results in a visual format. Query a set of data containing the most popular baby names in New York City. Then populate a list of filters: Year, Gender and Ethnicity. Generate a visual representation of the top 10 baby names that match the user’s criteria.
Once you figure out how to assign the data array to a property in state named data, then you could use the following to display all the names and their corresponding sid number.
I appericate your help and knownledge Randell. I apologize making it hard to read my code. So this is what I came up with https://codepen.io/devgoi/pen/LJJMvN
Still new to React, literally started this week, so sorry if my questions seem dumb, lol.
import React, { Component } from 'react';
export default App;
and changed it to
class App extends React.Component {
}
and also added the fetch inside the componentDidMount. I know this is very basic, but for some reason after a few days working on this, my mind can’t seem to wrap around it. I also copy and added your code. Here’s my update. My Code
Ok, after going back to the react docs, and a few videos, here is what I came up with. I did not get any errors, but the code you gave me to show the data in a ul, wouldn’t work. Updated code.