Trending Tears

Imitation of joy through tears. Practical psychology has come to the conclusion that there is no such thing as tears of joy. They are hidden pain. A reluctance to see the pyroclastic cloud behind the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




1. Todo.JSX file

My this blog is about how to build Todo list app with React JS. I am writing down the steps follow it i did it with my App in Reactjs also.

First of all in Todo.jsx file import react from react module. Then create fat arrow function with Todo name and write return key word in it then export this default Todo file below.

Export default Todo file

Now import Todo.Jsx file below.

Todo.jsx file imported here

Now add heading tag and input field and Add button and list in below image.

Now writing onChange event and then will use useState hooks in which i will have initial data with the name of “useState( )” and “listofinput” is our current data and “setlistofinput” is our updated data. Then i will define onChange event with the name of “itemEvent” in fat arrow function and here i will write one of event object and will target the value. Then i will render listofinput in list.

Now i will call one of event which is onClick then i will give name to it “listofitems” then i will define “listofitems” with fat arrow function. After that if i want to change the state so i will again use useState hooks with “items” and empty array see in below image.

Now in map method return a list value with the name of “itemval” see in below image.

Now the rest part will describe here in listofitems fat arrow function there is “olditems” which will access the one of object or array. Then i will write return keyword and will add array and will write “. . . olditems” and then will access “listofinput” see below image

Add a comment

Related posts:

Analysis of military forces

Military forces are armies and police forces of a state. These forces are made up of people who have the instruction and permission to handle weapons in accordance with the provisions of the…

Buy Negative Facebook Reviews

Buy Negative Facebook reviews are comments from critical customers who have received the services of a particular business and are not at all satisfied with the services received. At that time the…

Meet Brett Gajda and Nick Jaworski

Every two weeks I chat with great hosts to get insights on how they run their shows. It’s a series called Meet the Podcaster. Today there’s Brett Gajda and Nick Jaworski, respectively host and…