Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42b25c0

Browse files
committed
Import Launches component
1 parent 12192b7 commit 42b25c0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import './Style.css';
44

55
import ApolloClient from 'apollo-boost';
66
import {ApolloProvider} from "react-apollo";
7+
import Launches from "./components/Launches";
78

89
const client = new ApolloClient({
910
uri: 'http://localhost:5000/graphql'
@@ -17,6 +18,7 @@ class App extends React.Component {
1718
<div className="logo-container">
1819
<img src={Logo} alt="Logo" className="logo"/>
1920
</div>
21+
<Launches/>
2022
</div>
2123
</ApolloProvider>
2224
)

src/components/Launches.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const LAUNCHES_QUERY = gql`
1616
class Launches extends React.Component {
1717
render() {
1818
return(
19-
<div></div>
19+
<div className="display-4 my-3">Launches</div>
2020
);
2121
}
2222
}
23+
24+
export default Launches;

0 commit comments

Comments
 (0)