Skip to content

Instantly share code, notes, and snippets.

View viswanathsaj's full-sized avatar
💀
intense keyboard fish-ing?

Viswanath Saj viswanathsaj

💀
intense keyboard fish-ing?
View GitHub Profile
@viswanathsaj
viswanathsaj / LatestPost.js
Last active May 21, 2024 17:40
Implementation for a load more button in React/NextJS using Ghost CMS
// Make sure you are pulling ALL your posts from the ghost API [No limit]
function LatestPost (props) {
const [ postNum, setPostNum] = useState(3); // Default number of posts dislplayed
function handleClick() {
setPostNum(prevPostNum => prevPostNum + 3) // 3 is the number of posts you want to load per click
}
@viswanathsaj
viswanathsaj / keybase.md
Created June 5, 2020 19:45
Proof for Keybase

Keybase proof

I hereby claim:

  • I am viswanathsaj on github.
  • I am viswanathsaj (https://keybase.io/viswanathsaj) on keybase.
  • I have a public key ASCAHd5HOUJfLpkEmAjDJx-govTve7PlS686WdvnXi6p4Qo

To claim this, I am signing this object: