1
00:00:00,630 --> 00:00:02,370
Welcome to one of the beauty of this project.

2
00:00:02,850 --> 00:00:10,140
So until now, we have discussed on how to handle created a component, the harder component and also

3
00:00:10,170 --> 00:00:11,820
adding the elements to the idea.

4
00:00:12,390 --> 00:00:19,500
So now in this video, we will see after adding the element of writing that to do this through Item

5
00:00:19,500 --> 00:00:27,480
two, the idea how to in those values of the items in the interior as a note, as you can see here,

6
00:00:27,900 --> 00:00:33,870
whenever we add something, you can see a note being, you know, appear to get an actual item.

7
00:00:34,200 --> 00:00:40,950
So how to implement this by creating a note component so we can see that you virtually go to components

8
00:00:41,190 --> 00:00:43,380
and create a note component.

9
00:00:44,750 --> 00:00:55,790
Note that just once you're done with this, now, import the necessary things, import the act from

10
00:00:56,440 --> 00:00:56,870
the Act.

11
00:00:59,960 --> 00:01:02,030
Now, as you can see here.

12
00:01:03,160 --> 00:01:07,510
Whenever we add up new to item, you can see a delayed symbol.

13
00:01:07,870 --> 00:01:12,230
So where we got this delete symbol from discarded from material icons.

14
00:01:12,550 --> 00:01:18,040
So those, as you saw in the previous videos, we ate that when we go to material, you write, you'll

15
00:01:18,040 --> 00:01:23,730
be getting a search option and you can search for other items like the icons that you want by buried

16
00:01:23,830 --> 00:01:26,170
the podium so that we can use the delete icon.

17
00:01:29,180 --> 00:01:30,890
From great material.

18
00:01:32,600 --> 00:01:33,130
You're right.

19
00:01:35,860 --> 00:01:36,520
Icons.

20
00:01:38,410 --> 00:01:38,820
Will it?

21
00:01:43,620 --> 00:01:44,700
So once this is done.

22
00:01:46,470 --> 00:01:48,810
Now I'll create a function for this, not.

23
00:01:52,090 --> 00:01:54,520
This will take some probably to see what are those props?

24
00:01:55,860 --> 00:01:58,390
And what we have to return, we have to return.

25
00:02:00,670 --> 00:02:01,120
I don't.

26
00:02:02,130 --> 00:02:03,720
With Glass, and I'm not.

27
00:02:06,020 --> 00:02:07,670
This will have some not.

28
00:02:11,580 --> 00:02:15,210
OK, so now are we allowed to use the.

29
00:02:16,580 --> 00:02:17,330
Delete icon.

30
00:02:19,250 --> 00:02:20,270
The new icon.

31
00:02:22,880 --> 00:02:24,470
Visit Self-closing Taxol.

32
00:02:26,040 --> 00:02:30,550
Know for losing that once you're done with this, you have to export it default.

33
00:02:32,030 --> 00:02:35,690
Export pay for this will be the default export of this component.

34
00:02:36,440 --> 00:02:36,770
Not.

35
00:02:38,250 --> 00:02:42,960
If you have thought, like if you have different functions since you arrived in a single function,

36
00:02:43,230 --> 00:02:45,000
we are exporting that as the default.

37
00:02:45,150 --> 00:02:49,000
This company should export, but you're having three to four functions in this company.

38
00:02:49,260 --> 00:02:53,910
Then you can give different export to one of the one of the function and then the remaining.

39
00:02:53,910 --> 00:02:58,440
You're going to export them with their names so that whenever you import, you can import them using

40
00:02:58,440 --> 00:02:59,610
that name that you export.

41
00:03:00,690 --> 00:03:06,510
But when it is not before then you have to use the librettist when it's different only to use dark elements.

42
00:03:06,510 --> 00:03:11,350
So that is the difference between importing the different components and different functions and not

43
00:03:11,370 --> 00:03:12,210
different functions.

44
00:03:12,720 --> 00:03:15,480
So once you are done with this and not just you can import.

45
00:03:16,940 --> 00:03:17,410
People.

46
00:03:19,990 --> 00:03:20,350
Not.

47
00:03:21,610 --> 00:03:21,940
From.

48
00:03:24,890 --> 00:03:30,240
Components flash, not enough.

49
00:03:32,060 --> 00:03:35,120
So once you are importing this, let us use that in to.

50
00:03:37,060 --> 00:03:40,270
So after this create area, I'll be using that.

51
00:03:44,340 --> 00:03:48,400
I'll be using the North since Nautilus was in better known deals.

52
00:03:48,570 --> 00:03:51,400
OK, so we'll check whether the changes that are on.

53
00:03:52,570 --> 00:03:59,350
So as you can see here, we got a text saying not and also delete icon, but since we did not do any

54
00:03:59,350 --> 00:04:02,120
styling for that using the cases, we haven't got any styles.

55
00:04:02,440 --> 00:04:03,010
But it's fine.

56
00:04:03,010 --> 00:04:04,780
We'll do that in the course of this project.

57
00:04:05,770 --> 00:04:07,300
So we have achieved that note.

58
00:04:07,630 --> 00:04:12,970
But instead of north, we won the title and the content that we give when we are adding when we are

59
00:04:12,970 --> 00:04:14,080
clicking on this submit button.

60
00:04:14,740 --> 00:04:19,920
So as you can see in our create area, when we are clicking on this button, we are distorting that

61
00:04:19,930 --> 00:04:22,780
is not sending like calling this honor function.

62
00:04:23,230 --> 00:04:26,520
And then after so it is getting stored in that node setting.

63
00:04:26,740 --> 00:04:30,460
We also saw that by console logging the notes in the last few days.

64
00:04:30,460 --> 00:04:34,480
If you want to once again a, you can check out the previous year.

65
00:04:35,260 --> 00:04:37,540
So now we want that information.

66
00:04:37,570 --> 00:04:43,780
This is not information, the content, the title and the content of that information to be sent as

67
00:04:43,780 --> 00:04:49,480
a props so that we can use that in the note and then bring that one title and everything according to

68
00:04:49,480 --> 00:04:49,690
that.

69
00:04:50,260 --> 00:04:52,660
So now when send the props to that.

70
00:04:54,310 --> 00:04:54,700
Not.

71
00:04:59,200 --> 00:05:00,770
Key will be index.

72
00:05:01,510 --> 00:05:04,210
So I want to know what the scheme means.

73
00:05:04,780 --> 00:05:07,600
We'll see that after a few minutes.

74
00:05:10,510 --> 00:05:12,400
So that Biden should be.

75
00:05:13,870 --> 00:05:15,130
Note item Typekit.

76
00:05:15,970 --> 00:05:17,720
No, it does not.

77
00:05:18,210 --> 00:05:25,090
So now, like, for example, that item will be something by default, the title will be this.

78
00:05:28,060 --> 00:05:28,840
And the content.

79
00:05:30,730 --> 00:05:36,090
Contract will be something like the content of the test.

80
00:05:39,600 --> 00:05:46,950
OK, so no one's using this props, we can hold a Prop 28, and instead of printing this note, I can

81
00:05:46,950 --> 00:05:47,250
print.

82
00:05:48,570 --> 00:05:51,330
Drops, not Typekit, drops not by.

83
00:05:52,770 --> 00:05:57,990
Now, if you check over here, you are getting the title of the program that I signed into law from

84
00:05:57,990 --> 00:05:59,670
the title, you can also print content.

85
00:06:01,490 --> 00:06:05,120
Now you can see the content of the text we have seeing what I send as props.

86
00:06:05,870 --> 00:06:09,250
Now we want to send this title and content based on the notes edit.

87
00:06:09,620 --> 00:06:14,420
Since notes that it contains many items, it can be an array of size, five ideas off site, spend not

88
00:06:14,420 --> 00:06:15,800
outside, and it can be anything.

89
00:06:16,310 --> 00:06:21,650
So we have to use a fire loop so that we map each and every edit and we print accordingly to that.

90
00:06:22,430 --> 00:06:26,420
So that's why we'll be using the map function on that note.

91
00:06:27,890 --> 00:06:29,570
So we'll be.

92
00:06:31,660 --> 00:06:36,070
Not not, not since it's a JavaScript code, we have to use that in brackets.

93
00:06:36,670 --> 00:06:37,600
No, it's not math.

94
00:06:39,410 --> 00:06:47,810
And then the note item note item is that like whenever the map function is going through each and every

95
00:06:48,260 --> 00:06:51,350
iteration, that item that we are getting through the map function.

96
00:06:52,060 --> 00:06:59,450
So initially it will be the items in next little and then I'd imagine the next one and subsequent alignment.

97
00:07:00,140 --> 00:07:04,550
So once we get the item, you want to one day next, I'll be adding two parameters.

98
00:07:05,550 --> 00:07:06,470
Once we got that.

99
00:07:08,410 --> 00:07:09,220
We can use it.

100
00:07:11,220 --> 00:07:12,930
So we can return.

101
00:07:15,710 --> 00:07:16,550
A note over here.

102
00:07:16,970 --> 00:07:20,020
So instead of here, we can trade on the inaugural.

103
00:07:25,990 --> 00:07:27,040
So that looks good.

104
00:07:27,310 --> 00:07:34,900
So when we are using like, as I said, the previous few days or even if I did not see it now, you

105
00:07:34,900 --> 00:07:38,110
can make a note of this whenever you are using a map function.

106
00:07:38,860 --> 00:07:44,470
Then if you are using any custom component that we are creating for the project instead of map function,

107
00:07:44,740 --> 00:07:45,940
then it should have a unique ID.

108
00:07:46,480 --> 00:07:46,840
OK.

109
00:07:47,200 --> 00:07:54,040
So it should have a key and I.D. key will be index itself, and it will be also index.

110
00:07:54,640 --> 00:07:59,920
That's why we are taking the next parameter to get the next item that we are rating, not the value

111
00:07:59,920 --> 00:08:00,400
of the item.

112
00:08:00,610 --> 00:08:07,810
So once we have both of them, then the title can be note item title, note item dot item.

113
00:08:09,530 --> 00:08:10,270
And then the.

114
00:08:12,210 --> 00:08:13,230
Content can be.

115
00:08:16,460 --> 00:08:17,570
Not item, not content.

116
00:08:20,320 --> 00:08:21,610
Not content.

117
00:08:26,330 --> 00:08:34,910
So now we can use them instead of 96 to bring the item and the title and the content.

118
00:08:35,690 --> 00:08:40,720
So initially it will be each one, each one will be prop stock item.

119
00:08:44,170 --> 00:08:45,520
And then paragraph.

120
00:08:46,700 --> 00:08:47,210
Well, Bill.

121
00:08:49,060 --> 00:08:50,140
Thorpe's not counting.

122
00:08:51,590 --> 00:08:54,140
So we can see the fighting and everything in the aftermath.

123
00:08:54,980 --> 00:08:57,380
So I love not really because I don't want the business logic.

124
00:08:58,520 --> 00:08:59,540
So once this is done.

125
00:09:00,460 --> 00:09:06,340
Now you can check away, since you are not adding anything, we are not able to see anything.

126
00:09:07,180 --> 00:09:10,330
So when I add this, you can see empty.

127
00:09:13,010 --> 00:09:16,370
You can see and be entertained emboldened by the facts and content.

128
00:09:17,430 --> 00:09:19,110
Then you can see the content is getting at it.

129
00:09:20,550 --> 00:09:26,400
But as of now, the styling looks are some bad because we haven't styled anything, but we can see whenever

130
00:09:26,400 --> 00:09:31,200
we are, we can see the note one by one adding one by one so that when we refresh on that, it becomes

131
00:09:31,560 --> 00:09:32,670
empty again and you can.

132
00:09:34,660 --> 00:09:36,550
See the genius.

133
00:09:37,780 --> 00:09:42,550
Or you give some despondent clicking on it, exciting.

134
00:09:43,090 --> 00:09:49,850
So now we have completed adding the note regarding the notes of the clicking on A. button, adding the

135
00:09:49,870 --> 00:09:56,330
two items to the list in the next reader will see how to delete them whenever we click on this button.

136
00:09:56,350 --> 00:09:58,060
Then it should go from the screen, right?

137
00:09:58,390 --> 00:10:01,570
The how to delete that and off the left wing basically the styling part.

138
00:10:01,870 --> 00:10:07,210
And then I'll have an overview of everything like finishing the product scan and see that in the next

139
00:10:07,210 --> 00:10:07,420
reading.
