Skip to content

Instantly share code, notes, and snippets.

@Origho-precious
Created September 16, 2021 20:59
Show Gist options
  • Save Origho-precious/21677d0537f39469647a250b12b9e01d to your computer and use it in GitHub Desktop.
Save Origho-precious/21677d0537f39469647a250b12b9e01d to your computer and use it in GitHub Desktop.
Pagination Component - 1
import { useState, useEffect } from "react";
import { useRecoilState } from "recoil";
import styled from "styled-components";
import { animeListPageNum } from "../../store";
const Pagination = ({ listLength }) => {
const [pageNum, setPageNum] = useRecoilState(animeListPageNum);
const [numsArr, setNumsArr] = useState([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment