Here is an article I wrote, this is mostly targeted on beginners
https://dev.to/anoopfranc/how-i-created-a-custom-carousel-in-react-using-useref-and-usestate-in-typescript-1p7l
https://dev.to/anoopfranc/how-i-created-a-custom-carousel-in-react-using-useref-and-usestate-in-typescript-1p7l