Skip to content

Instantly share code, notes, and snippets.

View JamieMason's full-sized avatar
🙋
Looking for work

Jamie Mason JamieMason

🙋
Looking for work
View GitHub Profile
@JamieMason
JamieMason / AppContextProvider.tsx
Created February 10, 2020 22:40 — forked from adamkl/AppContextProvider.tsx
xState service layer
import React from "react";
import { createUserSessionService } from "services/UserSessionService";
import { createNavService } from "services/NavService";
// Wiring up our "IOC container"
const userSessionService = createUserSessionService();
// NavService depends on UserSessionService
const navService = createNavService(userSessionService);
@JamieMason
JamieMason / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console