From 47ed6004fc7d2df898622f0a2baf337f85c90ca8 Mon Sep 17 00:00:00 2001 From: StrikerOne65 Date: Tue, 23 Nov 2021 00:16:26 +0530 Subject: [PATCH] Fixing pagination issue --- src/App.js | 25 +++++++++++++++---------- src/components/Home/index.jsx | 6 +++--- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/App.js b/src/App.js index 6057df9..ffb9178 100644 --- a/src/App.js +++ b/src/App.js @@ -1,18 +1,23 @@ -import React from "react"; -import Home from "./components/Home/index"; -import { Switch, Route } from "react-router-dom"; -import About from "./components/About"; -import Nav from "./components/Nav"; +import React, { useState } from 'react' +import Home from './components/Home/index' +import { Switch, Route } from 'react-router-dom' +import About from './components/About' +import Nav from './components/Nav' const App = () => { + const [pageNo, setPageNo] = useState(0) return ( <>