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 React, { useState } from 'react' | |
// this component will be the focus of this series | |
// we will extend its functionality considerably throughout | |
// for now let's just setup the translations... | |
function Pager({ children, activeIndex }) { | |
// this will update when the activeIndex changes | |
// try updating activeIndex in devtools and see how the blue container changes position |
NewerOlder