Create a twitch clone using React -6

Photo by Ryan Fish on Unsplash

Welcome to Part-6 of the series. You can find part-5 here.

Let’s start where we left. We will next create our Delete component. We are going to show a modal to the delete the stream.

We will be using a React Portal for this, as creating a Modal is tricky in React.

So, go ahead and create a Modal.js file inside the components folder. Add the following code to it. We are using the method createPortal, in which the second argument is to select an id modal.

You can read the rest of the blog from my site. Link for the same is below.

You can find code till this point here.

Check the final part of the series here.

--

--

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store