In our app now, which is 90 percent complete, we can search for images which are being displayed a
list of 20 images at present images.
My apologies and I can search for a particular emoji or like a horse or perhaps a tiger, and it will
be shown to us.
But the only piece of code that remains untouched is the ability to click and copy the particular image,
right?
So for that purpose, we'll be taking the help of another library from the library from and PM, and
that is the clipboard library.
So for that purpose, just move into your co-editor, open up your terminal and will be installing another
library and then you with this library is going to be clipboard.
So you need to run the command npm install clipboard now, until terminal is open, just run the command
npm install clipboard.
So one thing have actually downloaded your or installed the clipboard now it's time to import it into
our application, so that's what we'll do.
So the first step is to import Clipboard into our application.
So just move into emoji results and import.
Your clipboard?
From Global.
OK, once they've imported it now, it'll be just initializing a clipboard in accompanying Vermont,
which is again a I look so in component moan.
They just created this their clipboard.
This is going to be called the nuclear board.
And the place again target is let's just name this place as copycat.
Now again, this there has to be a hyphen between them.
Now what is being mounted is supposed to be mounted, right, so.
Because if not, it is going to create a memory stick for us, which might not be good for any application.
So we'll just call it another matter that this component will mount and inside this will just destroy
this.
So this dark clipboard?
And it is set to destroy.
OK, so we are successfully mounting it and mounting it now because we do not want any sort of issues
with that app.
Now move into an immediate results show and inside pairing of the first element.
If you might see this will be assigning it the class of copied.
And apart from this, they'll also be targeting.
Data, not clipboard or text.
Text, which is it going to be equal to?
Symbol.
So now we are all set.
Let's take a look into our application, so to see that whether it's working or not.
So let's go into a browser and.
If I just click on one particular emoji, for example, if I just click on joy.
And it is going to be copied into a clipboard now if I just head back to it.
Such emoji and pasted over there.
So we are successfully able to paste it into our input styles and we can paste it at any other place.
So now our app is complete, now it's time for its deployment.