Skip to content

Instantly share code, notes, and snippets.

@martinwairegi
Created July 5, 2022 10:18
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 martinwairegi/31cb6e0e538de36b0712e69bc62b0acf to your computer and use it in GitHub Desktop.
Save martinwairegi/31cb6e0e538de36b0712e69bc62b0acf to your computer and use it in GitHub Desktop.
import React, { useEffect, useContext } from "react";
import StateContext from "../StateContext";
// Import Components
import Grid from "./Grid";
import TalkyBlocky from "./TalkyBlocky";
export default function Display() {
const { talkyBlocky, grid, talkyIsTalking, talkyBackground } = useContext(
StateContext
);
return (
<div>
<Grid grid={grid} />
<TalkyBlocky
talkyBlocky={talkyBlocky}
talkyIsTalking={talkyIsTalking}
talkyBackground={talkyBackground}
/>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment