How to create a pop up on react js

I just trying to create a popup using react js I think i did the right code but its not working anymore code below

import ReactModal from ‘react-modal’;
import React, { useState } from ‘react’;

function Example() {
const [isOpen, setIsOpen] = useState(false);

return (

Open Modal

This is the content of the modal.


export default Example;

please check my content is it right? well I did the full stack development course in Kolkata and get all te idea from my institute please help me thanks for help

Why are you asking it here?

Ask it on stackoverflow or some other dev forum.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.