Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created July 18, 2023 13:52
Show Gist options
  • Save Daltonic/dc536f400a907154f43ea3091f766956 to your computer and use it in GitHub Desktop.
Save Daltonic/dc536f400a907154f43ea3091f766956 to your computer and use it in GitHub Desktop.
Dapp Breeds
import React from 'react'
import Collection from '../components/Collection'
import Hero from '../components/Hero'
import Sponsors from '../components/Sponsors'
import Trending from '../components/Trending'
import { useGlobalState } from '../store'
const Home = () => {
const [minted] = useGlobalState('minted')
const [breeded] = useGlobalState('breeded')
return (
<div>
<Hero />
<Sponsors />
<Trending nfts={minted} />
{breeded.length > 0 && <Collection collection={breeded} />}
</div>
)
}
export default Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment