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 { createContext, useState, useEffect } from 'react'; | |
export const WatchListContext = createContext(); | |
export const WatchListContextProvider = props => { | |
//check to see if the watchList exists in local storage, if not return null | |
const localList = () => { | |
if (localStorage.getItem('watchList')) { | |
return localStorage.getItem('watchList').split(','); |
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
{"lastUpload":"2020-02-17T06:55:44.066Z","extensionVersion":"v3.4.3"} |