1)An adequate version of Node.js is installed. Here's the adequate version I use
$ node --version
v12.18.3
2)An adequate version of npm is installed. Here's the adequate version I use
$ npm --version
6.14.6
3)This project was bootstrapped with create-react-app.
inside Post.js I fecth the users data from "https://jsonplaceholder.typicode.com" and on each page there are only 4 users. fethcing of users is using axios, also data is passed from one component to other using props
inside PostPaginate.js collected the posts using destructuring and then each post is mapped and given the bootstrap classes such as "alert alert-primary" and "alert-heading".
inside Pagination.js written the for loop by counting how many pages will be shown according to the fetched users and on one page only four users are showed and also Prev and Next buttons asre also added.
refer the redux folder inside src folder in that 3 folders are there cake, icecream, and user inide each of that 3 files one is containing action type, one is having action creator, and one contains reducer inside reducer maintained initial state and in the reducer file there is reducer function which takse an action type according to that state is changed.
to use multiple reducers, used combinereducers inside RootReducer.js state of application is stored in Store.js in that used creatStore method
inside components folder there are 5 js files indside that it is used mapStateToProps and mapDispatchToProps methods also in that used connect method to connect it to store.
mynav.js file contains routing concepts such as switch, Link, BrowserRouter, Route, NavLink which is from the 'react-router-dom'
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.