[go: nahoru, domu]

Skip to content

Query Github user's pinned items and parse them to an array of material UI cards.

Notifications You must be signed in to change notification settings

ChiatzenW/pinnedItems_to_mui_cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github pinned item to Material UI cards

Usage:

Save pinned-to-card.js and credentials.json in /src/ folder. Add Github credentials and length of the item list in credentials.json file. Sample call:

import Pinned_to_card from "./pinned-to-card";
import {useAsync} from 'react-async';

function App() {
  const { data, error, isLoading } = useAsync({ promiseFn: Pinned_to_card,  });
  if (isLoading) return <div>Loading...</div>;
  if (error) return <div>Error!</div>;
  if (data) return <div>{data}</div>;
  return <div>Nothing</div>;
}export default App;

returns component: MUI cards.

Dependencies:

react-async react-mui graphql-request ...see package.json.

Sample Card:

Sample

About

Query Github user's pinned items and parse them to an array of material UI cards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published