Skip to content

Instantly share code, notes, and snippets.

View kyds3k's full-sized avatar

Adam Darby kyds3k

View GitHub Profile
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(',');
@kyds3k
kyds3k / cloudSettings
Last active February 17, 2020 07:08 — forked from ncla/dob.phtml
Visual Studio Settings Sync
{"lastUpload":"2020-02-17T06:55:44.066Z","extensionVersion":"v3.4.3"}