I added this to make it autoplay: /* THIS */ import React, {useEffect, useState} from 'react' useEffect(()=>{ const interval = setInterval(()=>{ nextSlide(); }, 3000); return () => clearInterval(interval); });
@chronoabi2 жыл бұрын
thanks bro I really needed that
@thanhtrungnguyen1684 Жыл бұрын
thanks bro
@james-rx8kw Жыл бұрын
really tks bro i need that
@chicopavomg Жыл бұрын
Thanks Bro, you're the best
@b.i.p1653 жыл бұрын
This is Amazing! Great job! You earned 1 sub!
@sabrinalucianavieirapinto56022 жыл бұрын
Worderful video tutorial! It was what I was seeking today!!
@drfcozapata2 жыл бұрын
Thanks, thanks and thanks, a lot!!! You've saved my life. 😄 Blessings from Venezuela.
@spencersedano2 жыл бұрын
Thank you, I just subscribed. It was a very good tutorial! I could understand most of it (becase I'm still getting used to React)
@TheWebSchool2 жыл бұрын
Glad for you and thanks!
@subhamshaw17263 жыл бұрын
conditional rendering part specially really helped me. I was using it but getting problem. After seeing your's conditional rending part fo image I got the solution. great video
@TheWebSchool3 жыл бұрын
Awesome 🚀
@iXShadow Жыл бұрын
Amazing tutorial! Very easy to follow thank you
@Jeireme Жыл бұрын
Je ne savais pas que Le Designer du Web avait une chaîne anglophone ! Merci beaucoup pour tous tes tutos, quelle que soit la langue 😄
@captainalpha48532 жыл бұрын
Very helpful! Keep making videos like this, Thanks. ♥️
@Mourshid86 Жыл бұрын
Merci à vous pour ces explications j'ai implanté se carousel dans mon projet il est parfait :)
@vitozdev2 жыл бұрын
awesome component and very structurated thanks
@maxfox46159 ай бұрын
Source link for github doesn't work =(( Page is not found.
@pritsapariya63913 жыл бұрын
Thanks for such a simple and sweet tutorial ...
@TheWebSchool3 жыл бұрын
You're welcome 🙌
@bayasahamed18152 жыл бұрын
Thanks for the video. It's an awesome one
@abdulmalikzihad35422 жыл бұрын
Nice man you made it so much easy. Thanks man
@TheWebSchool2 жыл бұрын
With pleasure 🙏🏻
@marianasavka13402 жыл бұрын
nice work, thank you!
@book.bezzublk Жыл бұрын
Thank you! Amazing video! ❤
@vetrisrv77642 жыл бұрын
Thank you so much brother. It's really awesome. I'm a beginner. This video really helpful. Thanks a lot. Keep Going
@techhouse1822 жыл бұрын
Thanks for this🤘amaz..stuff👌 keep going ❤️
@jamezjaz2 жыл бұрын
Awesome content here ✔ Thanks for sharing!
@huathengtang46452 жыл бұрын
Thank You so much @Learn to create. You save my day. I searched many other sources but they have complicated setup but your video is exactly what I am looking for. Just for an enhancement request. is there a chance you could make another video to make the slide transition to left and right ?
@TheWebSchool2 жыл бұрын
Maybe in another video, yes!
@NOTHING-en2ue11 ай бұрын
very great tutorial, thanks a lot ❤
@Hunsenbargen2 жыл бұрын
Awesome tutorial man, thanks a lot! +1 sub
@TheWebSchool2 жыл бұрын
You’re welcome 🔥
@gerardojao2 жыл бұрын
Excellent video, Thank u
@MARKOTHEDEV2 жыл бұрын
Cool stuff man
@best_iyke2 жыл бұрын
Thanks for the video tutorial. It really help me. I would have loved it most if you implemented auto slide.
@TheWebSchool2 жыл бұрын
Use a simple .setInterval()
@markrobert8352 жыл бұрын
Oh mon Dieu l accent français ne nous quitte pas même en anglais force à toi mon reuf
@joseleonardocrestoaguirre9283 Жыл бұрын
I had soft soft for a wNice tutorialle but never actually opened it because it looked too complex. TNice tutorials actually helped quite a bit. i an like for
@jonathanalixpierredort89323 жыл бұрын
Cool!!!
@irfanakatkn1457 Жыл бұрын
Good guide for beginners)
@user-ph5jm6st4n Жыл бұрын
THANK YOU SOOOOOOO MUCH !!!!!!!!!
@imanshokryeh5406 Жыл бұрын
it was very helpful tnx
@lizaparkhomets40782 жыл бұрын
thank you!
@girmatesfaye75073 жыл бұрын
best tutorial bro thank u
@TheWebSchool3 жыл бұрын
🙌🙌
@hexadecimalhexadecimal52412 жыл бұрын
i deleted some of the source files when i created this project so my file structure is similar to yours where i start, but then react just show error anytime i delete a source file and wont let me continue
@sirwisdom202 жыл бұрын
Nice tutorial sir
@motivationthoughts183 жыл бұрын
Nice work
@TheWebSchool3 жыл бұрын
Thanks!
@cmb92993 жыл бұрын
Very Good!
@TheWebSchool3 жыл бұрын
Thank's Carlos!
@piccapicca87042 жыл бұрын
How did all of your image didnt show up when you use .map without conditional on 4:45 ? Curious to know
@dmaberlin Жыл бұрын
Thanks
@ShahRukhKhan-oz7qu2 жыл бұрын
wow :)
@FlutterMentor2 жыл бұрын
Hey man, great video ! Awesome work. Would it be possible to also make it change if a user (on a mobile device) tried to slide the image right or left to change them? What should I search to find that feature?
@TheWebSchool2 жыл бұрын
Thanks dude, you need to look at the drag&drop events for desktop and touch events for mobile.
@FlutterMentor2 жыл бұрын
@@TheWebSchool Thank you!
@mayankpuvvala154610 ай бұрын
hey, your github link for this repository is not working, can you reupload it?
@odegbiletimileyin7312 Жыл бұрын
The link to the source code no longer exist. Please is there a way out? Or anyone with a cloned version
@instructor.lucas.sebastian Жыл бұрын
else to it. How do I do that? Your answer would be Nice tutorialghly helpful and appreciated.
@muhammadhusnain82013 жыл бұрын
Nice bro❤️
@TheWebSchool3 жыл бұрын
🙌🙌
@andreayahiouche2625 Жыл бұрын
softING AROUND THE BUSH
@ZENDASIAN Жыл бұрын
💖💖💖💖💖💖
@carrotiq68794 ай бұрын
your source code link is not working. Any new links??
@carrotiq68794 ай бұрын
github link not opening pls broo update the link ASAP. Great video Btw
@De_Bryan3 жыл бұрын
Good stuff! It would be nice if you created the same slider with auto-play.
@TheWebSchool3 жыл бұрын
Hey thanks, you just have to use a setInveral() with a useEffect() and change the index.
@De_Bryan3 жыл бұрын
@@TheWebSchool 👍
@BobbyBundlez2 жыл бұрын
this is a rough version i wrote for you. basically on initial component mount you want an index at 0, then you run a function immediately that changes the index every second (setTimeout, 1000) then when you are mapping through the slides (lets say you have 3) then you want the index to go back to 0 AFTER it hits 2 (0, 1, 2) .... then when you map through the slides the index automatically changes and increases by 1 each second. hope this helps! const [index, setIndex]=useState(0) const changeSlide=()=>{ setTimeout(()=>{ if(index=2){ setIndex(0) } else{ setIndex(index=>index+1) } },[1000]) { changeSlide() },[index ]) (
@De_Bryan2 жыл бұрын
@@BobbyBundlez Thanks alot. I am now doing react native. A little different but interesting stuff..with the jsx😀. 👍👍
@GregoryArt19768 ай бұрын
github-link is not found
@gabrielcampos541911 ай бұрын
i can't let me enter the link of your code
@letzberandom2632 жыл бұрын
I’m new to coding I wanted to know what was the data slider for?
@TheWebSchool2 жыл бұрын
Hey, it's just to provide some dummy data. Usually it comes from an API or a some databases.
@gousiyaart2515 Жыл бұрын
Brother GitHub link not working
@shubhamsingh14093 жыл бұрын
Can you plz show a multi item carousel in react used in e-commerce websites?
@TechX5others2 жыл бұрын
Earn a sub. Thanks man
Жыл бұрын
Niye sildin abi çalıcaktım
@aadhi70922 жыл бұрын
Can you make a video about the auto slides, please
@TheWebSchool2 жыл бұрын
You can do it by adding a setInterval buddy
@fxckeddog2261 Жыл бұрын
Then watch other producer how they make their s, then try to use soft again by yourself. If you've repeat the steps before, co back
@designcoded75853 жыл бұрын
can you teach how to make auto animated slider also 3 to 4 images per slides
@BobbyBundlez2 жыл бұрын
wrote this above for someone. hope this helps with automation this is a rough version i wrote for you. basically on initial component mount you want an index at 0, then you run a function immediately that changes the index every second (setTimeout, 1000) then when you are mapping through the slides (lets say you have 3) then you want the index to go back to 0 AFTER it hits 2 (0, 1, 2) .... then when you map through the slides the index automatically changes and increases by 1 each second. hope this helps! const [index, setIndex]=useState(0) const changeSlide=()=>{ setTimeout(()=>{ if(index=2){ setIndex(0) } else{ setIndex(index=>index+1) } },[1000]) { changeSlide() },[index ]) (
@designcoded75852 жыл бұрын
@@BobbyBundlez really thank you sooo soo much amazing and helpful
@designcoded75852 жыл бұрын
@@BobbyBundlez whats your channel name or any social media to follow you
@BobbyBundlez2 жыл бұрын
@@designcoded7585 i legit just had to build this slider right now for work LMFAO.. so here ya go const [index, setIndex] = useState(0); const indexFunc = () => { setTimeout(() => { if (index === reviews.length - 1) { setIndex(0); } else { setIndex(prev => prev + 1); } }, 1000); }; useEffect(() => { indexFunc(); }, [index]); then you map through. in my case i couldnt map and had to hard code but u get the gist
@BobbyBundlez2 жыл бұрын
@@designcoded7585 follow me and ask away man always love helping. Imma noob too but def able to code a lot of stuff like this without tutorials finally so msg me whenever
@RafaelTrog2 жыл бұрын
how to make it draggable?
@TheWebSchool2 жыл бұрын
It's a whole new problem, I did it in vanilla JS here if you can to grab the code : www.ui-delivery.com/Draggable%20Slider
@pbharathi85493 жыл бұрын
How to put this into infinite loop
@BobbyBundlez2 жыл бұрын
this is a rough version i wrote for you. basically on initial component mount you want an index at 0, then you run a function immediately that changes the index every second (setTimeout, 1000) then when you are mapping through the slides (lets say you have 3) then you want the index to go back to 0 AFTER it hits 2 (0, 1, 2) .... then when you map through the slides the index automatically changes and increases by 1 each second. hope this helps! const [index, setIndex]=useState(0) const changeSlide=()=>{ setTimeout(()=>{ if(index=2){ setIndex(0) } else{ setIndex(index=>index+1) } },[1000]) { changeSlide() },[index ]) (
@nics51 Жыл бұрын
settimeout
@ToanPham-ek7jr2 жыл бұрын
how to let slide auto run ?
@TheWebSchool2 жыл бұрын
Hey, use .setInterval()
@ToanPham-ek7jr2 жыл бұрын
@@TheWebSchool thank you so much
@ToanPham-ek7jr2 жыл бұрын
Anyway can u explain about this ' import { v4 as uuidv4 } from "uuid";' and why we use it on this part ?