Skip to content

bray22/React-MLB-Stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Interview

Fork this template from codesandbox.io.

Prompt

Please start development with the Teams.js component which has this prompt at the top:

We want this component to go get the teams from MLB's Stats API - GET to https://statsapi.mlb.com/api/v1/teams?season=2021&sportId=1 From there we want to display each team and the members of each team. To get the members of each team call the stats API with the team ID - GET to http://statsapi.mlb.com/api/v1/teams/<teamId>/roster?rosterType=active

Bonus

Add some styling to the component to make it more presentable or create one or two unit tests for the project.