One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import React, { useState, useEffect } from 'react'; | |
| import { FiChevronRight, FiChevronLeft } from 'react-icons/fi'; | |
| import { FaQuoteRight } from 'react-icons/fa'; | |
| import data from './data'; | |
| function Slider() { | |
| const [people, setPeople] = useState(data); | |
| const [index, setIndex] = useState(0); | |
| const [isOverPrevBtn, setIsOverPrevBtn] = useState(false); | |
| const [isOverNextBtn, setIsOverNextBtn] = useState(false); |
| const a = getIn(obj, path, defaultValue) | |
| Ejemplo: | |
| let object = { 'a': [{ 'b': { 'c': 3 } }] }; | |
| getIn(object, 'a.b.c', 'default'); | |
| // => 'default' | |
| let object2 = {a: { b: { c: 3 } } }; | |
| getIn(object2, 'a.b.c', 5); | |
| // => 3 | |
| getIn(object2, 'a.b.d', 5) ; |
| function Stack(){ | |
| this.items = []; | |
| this.elements = 0; | |
| this.push = push; | |
| this.pop = pop; | |
| this.isEmpty = isEmpty; | |
| this.peek = peek; | |
| this.size = size; | |
| function push( item ){ |