ReactJS Course [5] - CRUD In React | TodoList Tutorial

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 179

  • @shahrukhaltaf8286
    @shahrukhaltaf8286 2 роки тому +51

    thanks, Pedro !!! Please continue this react series I and my 6 other friends are following you. Best wishes for your health and wealth may God increase it with an infinite loop 👍

  • @rhiannonmonks6894
    @rhiannonmonks6894 2 роки тому +16

    I am your biggest fan right now! One suggestion. In almost every tutorial I have seen on UA-cam it's common to say, 'this isn't a CSS tutorial'. And I agree. However, because occasionally the syntax is different depending on how CSS is used (ie background-color v backgroundColor etc) and also because it took me a while not to get confused with styled components, module.css and also because I think in general there is a repetitive pattern for using CSS with React where it's pretty much width, height, flex etc, I actually think in a tutorial like this, for beginners it is worth going over it vs just jumping through, especially since in some ways you can use those ternary operators to show or hide and again that can be confusing, depending on whether you are using basic CSS with JS or styles. Just a thought, not a criticism, I simply suggest it, because you are so thorough with everything else, and the additional amount of time to add this in (or perhaps maybe doing a standalone course on it) might be really helpful for newbies, because the small differences between classic CSS / JS and how to best use it with React are tiny, but of course one tiny error and the page doesn't render which causes a world of pain! Thanks again for your tutorials!

  • @eshw23
    @eshw23 2 роки тому +6

    This series your creating is truly so amazing and helpful thanks

  • @TimothyBurns-lb4cb
    @TimothyBurns-lb4cb Рік тому +6

    This is a great course. I'm trying hard to get my first internship in Software Dev right now, and I started recognizing that React kept popping up. React has been appealing to me for awhile now, but that was a push. Your course is helping me a lot, thanks. (:

  • @smridhibhat7384
    @smridhibhat7384 6 місяців тому

    The best React tutorial I have come across. Easy to understand while covering all the important concepts by breaking them into small tasks. Well done Pedro and thank you for putting tremendous effort into your videos to help people learn.

  • @plaguegames3556
    @plaguegames3556 2 роки тому +3

    Well you definitely are a teacher, you have got some cool explanation skills there.

  • @_ash64
    @_ash64 Рік тому +4

    Simple, yet brilliant!
    Ty Pedro, you are the best!
    🙇🤜

  • @vitaliplatonau6933
    @vitaliplatonau6933 2 роки тому +6

    The brilliant video. Do not worry, Pedro. In general, it was not confusing and was not too long indeed, although, I replayed some parts of the video a few times to digest completely . But learning has never been easy. Please, keep adding more video about different aspects of logic in React and different use-cases of the code. It is interesting to learn how you write and structure your code to solve different tasks with basic React syntax .

  • @anuragkasudhan3734
    @anuragkasudhan3734 2 роки тому +4

    i am beginner in learning react, learning new concets with hands on practical experience is very enriching. for me, i wish to get a job soon on react and for you i wish lots of blessings! this course and you have been super helpful.

    • @hirensoni1348
      @hirensoni1348 10 місяців тому

      have you got job?

    • @anuragkasudhan3734
      @anuragkasudhan3734 10 місяців тому

      yes sir, i learned react last year in almost a fortnight and within a week i had cleared multile interviews and i joined one of them !!!@@hirensoni1348

  • @MrRyXem
    @MrRyXem 2 роки тому +9

    Hello Pedro, thanks for your video. To make it even simpler on the id part, you can pass the index of the element into the map() and use it as a props.
    items.map((foundItem, index) => {
    return (
    )};
    Are you planning on doing more videos on how to synchronize mongoDB and React ?
    Cheers

  • @karankumarftw
    @karankumarftw 2 роки тому +27

    Best react teacher of the world....
    and the Award goes to Mr. Pedro ❣️🔥❣️👏
    Loads of love from Tamilnadu, India ❣️❣️

  • @ishimweisaac1019
    @ishimweisaac1019 2 роки тому +4

    Am following along with you bro keep releasing more and more.

  • @Cinthiasaraiva
    @Cinthiasaraiva 2 роки тому +5

    Demorei pra perceber que vc era brasileiro, cara. Que orgulho
    obrigada pelo conteúdo!

  • @VR09
    @VR09 5 місяців тому

    Excelente Pedro!
    Estou fazendo uma revisão do React e os seus tutoriais tem sido bem didáticos!
    Keep it up!

  • @jovanvukomanovic1527
    @jovanvukomanovic1527 2 роки тому +1

    I have recently found you on youtube, I am a novice in React, respect for your work and knowledge, I have learned a lot

  • @againstthegrain5914
    @againstthegrain5914 2 роки тому +1

    Gotta love todo lists in crud!

  • @ahmednassar2536
    @ahmednassar2536 Рік тому +1

    Very easy explanation, and it's a great way to deliver the message. Keep going, Pedro's

  • @oussamabouallati
    @oussamabouallati 2 роки тому +2

    Thank you @PedroTech, I like it.
    I think it will be better if you added this:
    - clear the input after adding the new task
    - autofocus[input]
    - I could add an empty task (how to fix it?)
    - toggle the completed task
    I wish you the best of luck and good health,
    Thank you again sir!

  • @AnilKumar-xv9os
    @AnilKumar-xv9os 2 роки тому +2

    Wow, so smooth, so clear. Thank you 😊

  • @muradjadoon619
    @muradjadoon619 2 роки тому +1

    great tutor of react on youtube I have ever watched is pedro I am revicing my react with your this course

  • @fariduddinjhoni1091
    @fariduddinjhoni1091 2 роки тому +1

    thanks ,Pedro !!! please continue this series collogues and me are following .Awesome

  • @ИннаБогданова-к4щ
    @ИннаБогданова-к4щ 2 роки тому +2

    thanx a LOT, Pedro! you do the best react context, for me personally it is true!

  • @richardleungwoogabriel9317
    @richardleungwoogabriel9317 2 роки тому +1

    Great video im learning so much so fast!! Im getting better already!!! I want to learn everything from you!

  • @hassanamin1385
    @hassanamin1385 Рік тому

    i dont know about other youtubers but your react course is the best....

  • @jaceayo1929
    @jaceayo1929 Рік тому

    good video man had to watch a couple times but i understand roughly 90%

  • @BillyRyan123
    @BillyRyan123 3 місяці тому

    Hey Pedro ! I love your react course and I must say this is the best tutorial with simple explanations and easy to follow - along coding video . However, I'd like you to slow down the pace at which you speak when you are explaining stuff as this would be difficult for people who are not fluent or native English speakers to follow. Sometimes I have to playback like 6 or 7 times before I could understand a word
    Thanks!

  • @patrickudeh5869
    @patrickudeh5869 2 роки тому +1

    God bless you Man... You're the best....

  • @adedapo9438
    @adedapo9438 Рік тому

    best react course i have ever watch

  • @adamlahchimi-zb9rc
    @adamlahchimi-zb9rc 2 місяці тому

    this video made me realise that i can build a to do list just after watching react tutorials for one evening

  • @lodix-0
    @lodix-0 Рік тому +1

    thx for the great explanation!

  • @fernandoportillo130
    @fernandoportillo130 2 роки тому +1

    mans on that sprint week

  • @ArunKumar-zz4tg
    @ArunKumar-zz4tg Рік тому

    Awesome Explanation Pedro

  • @crazythings1524
    @crazythings1524 Рік тому +2

    instead of creating an id, we can use the index of the array to identify it.

  • @bryansuello
    @bryansuello 2 роки тому +1

    thanks a lot sir. your videos has helpd me a lot

  • @babafunmiseadebowale7746
    @babafunmiseadebowale7746 Рік тому

    Great vidoes. I wish you had explained why the delete had to be wrapped in an arrow function

  • @tech_channel110
    @tech_channel110 Рік тому

    pedro, you made it simple !!

  • @realmethree5127
    @realmethree5127 2 роки тому

    Brother your tutorials are awesome👍. I want to learn more from you. Please make beginner friendly readt projects

  • @thegr8ron283
    @thegr8ron283 Рік тому +1

    Why is the map working without any problem? I thought we need a key value?
    Besides that: I love your way of teaching and would love to see you making a tutorial where you do complex apps like a food-order website with the dashboard for the shop or an appointment-maker app with a dashboard.
    Keep up this great work!

    • @2ameridiem
      @2ameridiem 10 місяців тому

      the callback function takes three parameters arr.map((element, key, array)=>{ }) element is the required parameter and the other two are optional. so you may omit them and it would still work fine.

  • @oncoding4520
    @oncoding4520 Рік тому

    thanks Pedro, straight to the point your tutorials and at the same time they are enough to get start immediately. I wish you would post another project like even with the "login in form" that you posted some days. We just want pattern to follow not CSS just when we see that you have color it we undrestand it thta here you can put your css

    • @oncoding4520
      @oncoding4520 Рік тому

      no no no no you are totally the best so for example when you did the deconstruction how to update the state, everyone on youtube just take it for granted that we know the shortcut how to write the clean code... while you did in a longer way and then you cut it so we can understand it. im talking about the addTask function... you are amazing

  • @zzzzzzzzzzzzzzzzzzz13142
    @zzzzzzzzzzzzzzzzzzz13142 Рік тому +1

    I've spent like 2 hours to solve it. omg it's too easy.

  • @siddiquizaid4315
    @siddiquizaid4315 2 роки тому

    awesome react course i'have ever seen...
    waiting for next video... it is awesome.

  • @Nova-900
    @Nova-900 Рік тому

    Thanks man for this tutorial

  • @azzaoTheJunior
    @azzaoTheJunior Рік тому

    thanks pdro
    with your amzing course

  • @akritiyadav3873
    @akritiyadav3873 2 роки тому +1

    delete(task) is not written because parenthesis just after the function name with argument is that you are calling the function immediately but you don't want i,t you want it to be called only after the button is clicked thats is why you are giving a function to onClick attribute with an argument to function as task so that call the function only if button is clicked.

  • @cutocato830
    @cutocato830 Рік тому

    Nice tutorial and exercise 👍

  • @gomathim9306
    @gomathim9306 2 місяці тому

    Thanks ! Awesome one! please share Update operation

  • @Ramvaish31
    @Ramvaish31 7 місяців тому

    Thanks Pedro! I'm a beginner for ReactJS and your explanation is really great to easily understand and implement.
    I completed your previous chapters and currently in this video (CRUD operation) and I have a quick question on this.
    I am clear on the Add and Delete operation and I need clarification on Edit operation.
    In case if we need to edit the existing Task Name, how it can be achieved?
    Should we use "document.getElementById().value = {task.Name}" or is there any other effective way?

  • @sonamohialdin3376
    @sonamohialdin3376 2 роки тому +1

    Very useful tutorial thank you

  • @alexandrodisla6285
    @alexandrodisla6285 2 роки тому +3

    Might be good to show us the difference between redux and redux-toolkit. With use case of API in each scenario.

    • @Chriss-cn1ch
      @Chriss-cn1ch 2 роки тому

      They're the same, but newer version

  • @d-landjs
    @d-landjs Рік тому

    Great video bro!

  • @Nirajan_Malla
    @Nirajan_Malla 2 роки тому

    you are too good bro, big fan

  • @naderat
    @naderat Рік тому

    You rock man! Thank you 🙂

  • @amiralikhan
    @amiralikhan Рік тому

    thanks Pedro, may God bless you for the time and effort you have put in. I am guessing we can also use the ternary operator in the complete task function, as you love using it :-)

  • @TheZubbyShow
    @TheZubbyShow Рік тому

    Great content. But please try to explain everything you do. Especially 33.00 to 35.05 where you passed props without saying why. Explaining will help for better understanding and not just copying. Also not to rush when talking lol. Great content. I’d always like and I’ve subscribed too.

  • @gunishjain9307
    @gunishjain9307 Рік тому +2

    24:48 I differentiated each task by using the 'key 'argument from the map function. I passed the key in the deleteTask(key) inside the onClick and then in the deleteTask function I wrote the logic to check taskKey!==key. This could also be a solution.
    const deleteTask=(key)=>{
    setTaskList(taskList.filter((task,taskKey)=>taskKey!==key));
    }

    • @sakthikumargurunathan6911
      @sakthikumargurunathan6911 Рік тому +1

      Hey could you please elobrate or can you paste the code in here.. really confusing
      edit: I did it man, thanks though.

    • @hazaka97
      @hazaka97 Рік тому

      @@sakthikumargurunathan6911 Write your code in your editor then copy paste bro.

  • @triptivyas2521
    @triptivyas2521 Рік тому

    and after going through too many react tutorials i stopped at this one. Thanks pedro Tech

  • @dixitGogoi32
    @dixitGogoi32 Рік тому

    Very nice tutorial🔥🔥

  • @workoutwithvijaay
    @workoutwithvijaay 2 роки тому

    In to the fifth video, bruh you are an Academy, An React Academy...

  • @raevengoncalves
    @raevengoncalves 2 роки тому +1

    awesome content. Question... when deleting from the array. could you not just use the index that come with the .map? {todo.map((task, index) => )} . then setTodoList(todoList.filter((task) => task !== indext)) ? We could get the index from the Key={ I }?

  • @okeyshourovroy2769
    @okeyshourovroy2769 2 роки тому +1

    Can you please make a video on refresh token implementation in Reactjs and Apollo Server Express

  • @vartikadehalvi7298
    @vartikadehalvi7298 Рік тому

    for deleting a task, you can simply do something like this const handleDelete = (index) => {
    const updatedTasks = [...tasks];
    updatedTasks.splice(index, 1);
    setTasks(updatedTasks);
    };
    where index is the index of each element in the array that you grab from the map function

  • @yassiribrahim7521
    @yassiribrahim7521 2 роки тому +1

    Thanks Pedro

  • @aryanyadav3926
    @aryanyadav3926 9 місяців тому +1

    Can't we use the index of the task in the todoList array to delete the chosen task?
    I don't see any issues with it.

  • @noname-high-as-kite
    @noname-high-as-kite 3 місяці тому

    great content, thank you

  • @Hacking-NASSA-with-HTML
    @Hacking-NASSA-with-HTML Рік тому

    Maybe you could make a tutorial on how to make a MERN blog, with images stored in Cloudinary 🤗🙏?

  • @waleedsharif618
    @waleedsharif618 2 роки тому +3

    It would have been better if u added edit functionality to it also

    • @PedroTechnologies
      @PedroTechnologies  2 роки тому

      The `completed` part is supposed to be the Update part of the crud :) Editing would be very similar to that!

    • @rojeetdhakal4801
      @rojeetdhakal4801 2 роки тому

      @@PedroTechnologies it would have been better if u added edit functionality to it also

  • @l-fitness3590
    @l-fitness3590 4 місяці тому

    I know it doesn’t matter which way you do this but I prefer to use index to filter so you can just do I == index

    • @l-fitness3590
      @l-fitness3590 4 місяці тому

      lol made this comment before seeing the part where you changed it 😂

  • @k303k
    @k303k Рік тому

    Done! Thanks a lot!

  • @emersonarruda7657
    @emersonarruda7657 8 місяців тому

    A question as to whether the "task" in deleteTask(task) refers to the map mapping

    {todoList.map((task) => {
    return (

    {task}
    deleteTask(task)}> X

    const deleteTask = (taskName) => {
    const newTodoList = todoList.filter((task) => {

    if (task === taskName) {
    return false;
    } else {
    return true;
    }
    });
    Since the button's delete task will bring up the map argument, and then it will be used again, but now with a new taskName instead of Task as it is in the button's onClick? What value will the taskName have? the same value as task ?

  • @murali7370
    @murali7370 2 роки тому +1

    Thanks @Pedro

  • @sylviamaina7862
    @sylviamaina7862 2 роки тому

    Love your content if you'll do another login/signup with crud and sql workspace could you please show how one reroutes from the login page to homepage when the user is signed in please

  • @politicalnewspoint4033
    @politicalnewspoint4033 Рік тому

    bro really you are a gem god bless you

  • @tattarrrrattat
    @tattarrrrattat 2 роки тому +1

    Will you be adding update functionality to the TodoList?

  • @user-su4rd3ml8b
    @user-su4rd3ml8b 2 роки тому

    PEDÃO É DO BRASILLL VALEU MANO

  • @LordDansco
    @LordDansco 8 місяців тому

    i need the complete toturial for react

  • @ИннаБогданова-к4щ
    @ИннаБогданова-к4щ 2 роки тому +2

    Pedro, hello, thanx for super-context, aon more time.
    I got a question: is it possible to solve your exercise through creating const [complete, setComplete]=useState(true) ???
    i tried and as i understand the problem with id of certain task we have. is it possible to solve that way?

    • @PedroTechnologies
      @PedroTechnologies  2 роки тому +2

      If you have a state called complete, then it would only hold information for all the tasks at once. You need to know if each task individually is completed or not, so thats why i made an object for each task.

    • @ИннаБогданова-к4щ
      @ИннаБогданова-к4щ 2 роки тому

      @@PedroTechnologies Thanx, Pedro!

  • @Hacking-NASSA-with-HTML
    @Hacking-NASSA-with-HTML Рік тому

    Thank you so much, sir 👍🤝

    • @Hacking-NASSA-with-HTML
      @Hacking-NASSA-with-HTML Рік тому

      Maybe you could make a tutorial on how to make a MERN blog, with images stored in Cloudinary 🤗🙏?

  • @thisu0719
    @thisu0719 Рік тому

    Thanks for the video!
    I have a problem....I didn't use a new Task file (32:07) and i just kept it as it is, now i can't find a way to make it green! I did up to the map with the object but i can't get it to green idk how it works!! Pls it'd be great if you could help me!

  • @Avinash-iw3er
    @Avinash-iw3er 2 роки тому

    Please create a roadmap video for full stack development

  • @JoseGomez-ue8el
    @JoseGomez-ue8el Рік тому

    I've seen a couple of videos of yours and you don't seem to have something that clears the form about submitting. I think it'll be cool to have something in place for that.

  • @luckytechpro9537
    @luckytechpro9537 Рік тому

    great job!!

  • @Swmdwn.Khakhlary
    @Swmdwn.Khakhlary Рік тому

    Hey Pedro, I really struggle with CSS could u make a good tut on that!

  • @aadibhandwalkar6450
    @aadibhandwalkar6450 Рік тому

    What will be the way if we are not passing the delete function as props?

  • @zero3281
    @zero3281 6 місяців тому

    cant we just use the index of the todolist as the second parameter of .map() is index and then match it with the index of newtoDolist to delete the current element?

  • @mattarek6256
    @mattarek6256 Рік тому

    Are you using typescript maybe :D? I'm trying rewrite to into TS and it is difficult xD

  • @38911bytefree
    @38911bytefree Рік тому

    Thanks Pedro !!!!!.

  • @maurokane1468
    @maurokane1468 2 роки тому

    Great tutorial, can you make a redux-toolkit with firestore

  • @madlxu
    @madlxu 2 роки тому +1

    ur the man

  • @samduss4193
    @samduss4193 6 місяців тому

    the logic of how to build stuff is actuallly different from building from Javascript scratch it takes a little to convert

  • @mrgolar7934
    @mrgolar7934 Рік тому

    24:07
    is it okay to fix this problem in another way?
    when we display the list on the screen we use the "map" method, so we can use its index and passed it to the "deleteTask" function instead of passing the name of the task
    and in the function when we use the "filter" method and we can use its index as well
    so, by comparing the indexes we can delete the clicked task of the list according to its index not its name

    • @mrgolar7934
      @mrgolar7934 Рік тому

      i did that and it actually worked!

  • @abin9262
    @abin9262 2 роки тому

    Can you do the delete operation with the splice method...

  • @xx-vf3yu
    @xx-vf3yu 2 роки тому +1

    ❤❤❤ i want to ask if its ok to use index instead of id’ thanks and more power🎉

  • @animeshrose
    @animeshrose 2 роки тому

    I would have liked if you have gonna a little slower while explaining the topics specially when you're using the variables as it gets kind of confusing with all the variables having the very similar names. But yeah, overall a great video. Will probably need to watch it multiple times to get the points.

  • @deathlesssoul7210
    @deathlesssoul7210 3 місяці тому

    Wouldn't it be enough to open a new array for id?

  • @abdifatahmoh
    @abdifatahmoh 2 роки тому

    Thanks for the tutorial. Wondering how can we clear the input each time we add a task and submit the value?

    • @WeAreByteableGames
      @WeAreByteableGames 2 роки тому

      Hello you can pass setNewTask(" ") inside addTask function

  • @asustufa1515
    @asustufa1515 5 місяців тому

    Why do you add .id at the end in the task object?

  • @lirimh5n
    @lirimh5n Рік тому

    When I read the code I understand it perfectly but when I try to write the same code without looking in the example I stuck, I can't remember the logic. What to do for this ? how to master this solving problem thinking? I appreciate if you replay my comment.

  • @a.hannan_06
    @a.hannan_06 Рік тому

    'task' is assigned a value but never used .....--> how do i call the "task" var ??

  • @newagecoder5417
    @newagecoder5417 2 роки тому

    Which font are you using pedro?

  • @XajiDahir
    @XajiDahir Рік тому

    Thank you.