Skip to content

Instantly share code, notes, and snippets.

View markuckermann's full-sized avatar

Mark Uckermann markuckermann

View GitHub Profile
let UserContext = React.createContext();
class App extends React.Component {
state = {
user: null,
setUser: user => {
this.setState({ user });
}
};