import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import { Link } from 'react-router-dom'; import ServicesQuery from '@graphql/Services.gql'; class ServiceList extends Component { render() { const { location, services, loading, error } = this.props; const serviceList = loading ?
Loading...
: error ?Error!!!
: services.map((service, index) =>{service.name}
); return (