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

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

PedroTech

1 год назад

87,550 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@firefistace1909
@firefistace1909 - 20.11.2023 10:43

At 27 minutes, isn't it better to make the id like this

id: toDoList.length+1

Ответить
@firefistace1909
@firefistace1909 - 20.11.2023 08:36

What is your vs code theme?

Ответить
@malcomowilla2190
@malcomowilla2190 - 25.10.2023 10:39

Concerning the id part u can also try this
const task ={
id: todoList.length+1,
taskName: newTask

}


setTodoList([...todoList, task])

}

Ответить
@tech_channel110
@tech_channel110 - 14.10.2023 21:50

pedro, you made it simple !!

Ответить
@amiralikhan
@amiralikhan - 01.10.2023 16:13

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 :-)

Ответить
@YouTube-Developer
@YouTube-Developer - 29.09.2023 20:47

where is the CRUD stuff bro! this is only about delete things😢

Ответить
@jaceayo1929
@jaceayo1929 - 25.09.2023 20:39

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

Ответить
@aadibhandwalkar6450
@aadibhandwalkar6450 - 22.09.2023 20:07

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

Ответить
@soumelee5661
@soumelee5661 - 22.09.2023 13:43

your examples are very good for clearing concepts

function App(){
const [todoList, setTodolist] = useState([]);
const [newTask, setnewTask] = useState("");

const handleChange = (event) =>{
setnewTask(event.target.value);
};
const addTask= () =>{
const newTodoList = [...todoList, newTask];
setTodolist(newTodoList);
};

return (
<div className="App">
<div className="addTask">
<input onChange={handleChange}/>
<button onClick={addTask}>Add task</button>
</div>
<div className="list">
{todoList.map((task) => {
return <h1>{task}</h1>
})}</div>
</div>
);
}

Ответить
@Nk-os3cj
@Nk-os3cj - 17.09.2023 12:40

I didnt understood the ID and the completed task part can anyone help me with that

Ответить
@politicalnewspoint4033
@politicalnewspoint4033 - 16.09.2023 02:12

bro really you are a gem god bless you

Ответить
@Nova-900
@Nova-900 - 13.09.2023 11:55

Thanks man for this tutorial

Ответить
@vladyslavstadnyk9156
@vladyslavstadnyk9156 - 11.09.2023 17:37

Why do you use const to functions?

Ответить
@huzairahmedkhan650
@huzairahmedkhan650 - 11.08.2023 19:59

Bro help everything is going over my head you are fast

Ответить
@wei7360
@wei7360 - 08.08.2023 08:32

this is the hardest episode yet 0_0 had to go 0.5x speed 0_0

Ответить
@ArunKumar-zz4tg
@ArunKumar-zz4tg - 07.08.2023 21:55

Awesome Explanation Pedro

Ответить
@cutocato830
@cutocato830 - 08.07.2023 23:54

Nice tutorial and exercise 👍

Ответить
@vartikadehalvi7298
@vartikadehalvi7298 - 05.07.2023 15:23

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

Ответить
@38911bytefree
@38911bytefree - 03.07.2023 03:21

Thanks Pedro !!!!!.

Ответить
@MOHITRANA-to7rf
@MOHITRANA-to7rf - 19.06.2023 03:28

What to do if we have to take input more than 1 input from the user how to store it.

Ответить
@Moon_Dreams
@Moon_Dreams - 14.06.2023 13:37

what if we filter with task and index => const newTodoList = todoList.filter((todo,x) => {
if(todo === task & x === index){
return false
}else{
return true
}

Ответить
@Factiverse0001
@Factiverse0001 - 09.05.2023 20:40

Which theme are you using ? Reply please

Ответить
@d-landjs
@d-landjs - 09.05.2023 14:05

Great video bro!

Ответить
@dhuxdheerdahir2736
@dhuxdheerdahir2736 - 04.05.2023 03:09

Thank you.

Ответить
@bamidelegbadurabi1364
@bamidelegbadurabi1364 - 30.04.2023 07:45

Thanks Pedro, more grease to your elbow.

Ответить
@soumyachakraborty2004
@soumyachakraborty2004 - 25.04.2023 07:24

after watching this 2 times now i can do it basically alone
.
.
.
***but with a little help in syntax...😅

Ответить
@washinerdev4355
@washinerdev4355 - 22.04.2023 06:09

Pedro vc e brasileiro???

Ответить
@azzaoTheJunior
@azzaoTheJunior - 08.04.2023 19:43

thanks pdro
with your amzing course

Ответить
@babafunmiseadebowale7746
@babafunmiseadebowale7746 - 06.04.2023 08:27

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

Ответить
@naderat
@naderat - 31.03.2023 05:24

You rock man! Thank you 🙂

Ответить
@triptivyas2521
@triptivyas2521 - 25.03.2023 22:38

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

Ответить
@City__Walker
@City__Walker - 22.03.2023 15:03

Math.floor(Math.random() * 100) better and simple for generate id

Ответить
@crazythings1524
@crazythings1524 - 21.03.2023 17:43

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

Ответить
@a.hannan_06
@a.hannan_06 - 14.03.2023 14:46

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

Ответить
@TimothyBurns-lb4cb
@TimothyBurns-lb4cb - 13.03.2023 05:50

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. (:

Ответить
@thegr8ron283
@thegr8ron283 - 03.03.2023 23:47

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!

Ответить
@lodix-0
@lodix-0 - 24.02.2023 17:12

thx for the great explanation!

Ответить
@kennedychukwu4152
@kennedychukwu4152 - 13.02.2023 16:05

God bless you

Ответить
@ucspriyadharshiniG
@ucspriyadharshiniG - 13.02.2023 15:59

what about update operation????????????🥺🥺🥺🥺🥺🥺please teach that

Ответить
@nzubeokere3718
@nzubeokere3718 - 06.02.2023 22:12

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.

Ответить
@zzzzzzzzzzzzzzzzzzz13142
@zzzzzzzzzzzzzzzzzzz13142 - 26.01.2023 05:14

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

Ответить
@ashX64
@ashX64 - 18.01.2023 11:29

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

Ответить
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML - 14.01.2023 22:11

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

Ответить
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML - 14.01.2023 21:55

Thank you so much, sir 👍🤝

Ответить
@Swmdwn.Khakhlary
@Swmdwn.Khakhlary - 13.01.2023 20:02

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

Ответить