Review component with prev and next functionality.
- Purpose of the project is to train myself on using useState and manipulating local data
- React.Js
- Destructuring data properties and their reference to data index
- Prev/next code (sample below):
const nextPerson = () => {
setIndex((index) => {
let newIndex = index + 1;
return checkNumber(newIndex);
});
};
After you clone this repo to your desktop, go to its root directory and run npm install
to install its dependencies.
Once the dependencies are installed, you can run npm start
to start the application. You will then be able to access it at localhost:3000
Credits to an awesome instructor John Smilga!