Last active
March 23, 2019 10:31
-
-
Save karannaoh/3cb338b5be08a6520ae5e660e0a94e4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import ApolloClient from "apollo-boost"; | |
import {ApolloProvider} from "react-apollo" | |
import Todos from "./Todos" | |
import AddTodo from "./components/AddTodo" | |
import Button from 'react-bootstrap/Button' | |
const client = new ApolloClient({ | |
uri: "https://example.herokuapp.com/v1alpha1/graphql", | |
}); | |
class App extends Component { | |
render() { | |
return ( | |
isAuthenticated() && ( | |
<ApolloProvider client={client}> | |
<div className="todo-app container"> | |
<h1 className=" title center blue-text">Todos</h1> | |
<Todos /> | |
<AddTodo /> | |
<div> ***completed task are green and incomplete are yellow***</div> | |
</div> | |
</ApolloProvider> | |
) | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment