Skip to content

Instantly share code, notes, and snippets.

@greaveselliott
Last active June 23, 2019 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greaveselliott/e8212de0281a8c442944bc5fa59ed02b to your computer and use it in GitHub Desktop.
Save greaveselliott/e8212de0281a8c442944bc5fa59ed02b to your computer and use it in GitHub Desktop.
import React, { useRef, useContext } from "react";
import { Store } from "./Store";
import { createNewListItem, deleteNewListItem } from "./Actions";
import "./app.scss";
export default function App() {
const { state, dispatch } = useContext(Store);
const input = useRef();
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment