How to Create Modals in React
With Redux and Hooks
Published in
4 min readJun 3, 2020
When I started with React, one of my first assignments was to create a modal dialog box to display some data in it. I spent a lot of time googling how to create a function that I could call to display some window. It was a natural thing to do for me. Even VanillaJs allows you to just call the alert
function to display a simple dialog box. I could not understand why it is not…