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 from "react"; | |
import ReactDOM from "react-dom"; | |
import { ApolloProvider } from "react-apollo"; | |
import client from "./apollo/client"; | |
import App from "./App"; | |
const wrappedApp = ( | |
<ApolloProvider client={client}> | |
<App /> | |
</ApolloProvider> |
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 { BrowserRouter as Router, Route, Switch } from "react-router-dom"; | |
import { Query } from "react-apollo"; | |
import jwtDecode from "jwt-decode"; | |
import "./styles/styleIndex"; | |
import { | |
Header, | |
Footer, | |
Home, |
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
{ | |
"name": "learnco-client", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"apollo-boost": "^0.1.10", | |
"apollo-link": "^1.2.2", | |
"apollo-link-context": "^1.0.8", | |
"graphql": "^0.13.2", | |
"graphql-tag": "^2.9.2", |
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
// semantic-ui-form.js | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Form, Input } from 'semantic-ui-react'; | |
export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) { | |
function handleChange (e, { value }) { | |
return input.onChange(value); | |
} |
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 from 'react'; | |
/* | |
Todo app structure | |
TodoApp | |
- TodoHeader | |
- TodoList | |
- TodoListItem #1 | |
- TodoListItem #2 |
NewerOlder