<-------- React Carousel --------->
-
I built this react carousel with the help of React hooks:- useEffect and useState.
-
This can take input as a Image and Text from the user.
-
I write the function logic with the help of useState:- First set the initial state = 0; then using useEffect inside it setInterval to set the timing of an auto-sliding effect of the carousel. ----> user can set the auto-sliding effect timing by changing the interval provided.