This commit is contained in:
2020-08-22 12:21:18 +02:00
parent 12c3383b55
commit 54e80707b2
11 changed files with 132 additions and 47 deletions

View File

@@ -1,7 +1,6 @@
import React, { createContext } from 'react';
const data = require('../../data.json');
console.log('d', data);
interface GithubContextType {
username: string;
@@ -13,7 +12,7 @@ const GithubProvider: React.FC = ({
children,
}) => (
<GithubContext.Provider
value={{ data }}
value={{ ...data }}
>
{children}
</GithubContext.Provider>