Created
September 16, 2021 20:59
-
-
Save Origho-precious/21677d0537f39469647a250b12b9e01d to your computer and use it in GitHub Desktop.
Pagination Component - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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