React GraphQL Challenge - SpaceX API

Summary

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

Past Launches

{
  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
  }
}

Next Launches

{
  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
  }
}

Requirements

typescript good component design clear data and state management has ui design considerations paging

Notes

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!