This file contains hidden or 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"; | |
const ListContext = React.createContext(); | |
export default ListContext; |
This file contains hidden or 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 Loading from "./../components/Loading"; | |
import fetchData from "./../data"; | |
/* | |
variables - function that returns parameters (based on the component props) for the fetchData() | |
*/ | |
const withLoadingData = variables => WrappedComponent => { | |
class WithLoadingData extends Component { | |
state = { |
NewerOlder