DEV Community

Cover image for HOW TO BUILD A REUSABLE AND RESPONSIVE MODAL IN REACT FROM SCRATCH

HOW TO BUILD A REUSABLE AND RESPONSIVE MODAL IN REACT FROM SCRATCH

korey 🇳🇬 on December 08, 2019

Source code to this tutorial is found here Adekoreday / Custom-React-Modal ...
Collapse
 
successgilli profile image
Awaji-mitop N. Gilbert

The modal is a little shifted to the right.

Flex justify and align can sort this out.

Nice post.

Collapse
 
adeyemiadekore2 profile image
korey 🇳🇬

Thanks, actually didn't use flex in my implementation.

margin: 15% auto; on the content

did the job.