Using the SpaceX graphql API, create a simple react app that will show the following data.
https://api.spacex.land/graphql/
GET: igraphql viewer POST: graphql api endpoint
{
launchesPast(limit: 10) {
id
mission_name
launch_date_local
launch_site {
site_name_long
}
links {
article_link
video_link
}
rocket {
rocket_name
rocket_type
}
launch_success
details
}
}
{
launchNext {
launch_date_local
id
launch_site {
site_name_long
}
launch_success
links {
article_link
video_link
}
rocket {
rocket_name
rocket_type
}
details
mission_name
}
}
typescript good component design clear data and state management has ui design considerations paging
Try to embed the launch video in a good way Try to use hooks and context create a repository and send it to us when it's ready for evaluation. Have fun!