Skip to content

Instantly share code, notes, and snippets.


Jamie Mason JamieMason

View GitHub Profile
JamieMason / AppContextProvider.tsx
Created February 10, 2020 22:40 — forked from adamkl/AppContextProvider.tsx
xState service layer
View AppContextProvider.tsx
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 / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console