New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

modal-react-for-projects

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modal-react-for-projects

Simple component displaying a personalized message in a new window.

latest
Source
npmnpm
Version
0.1.9
Version published
Maintainers
1
Created
Source

React Modal component

A simple component displaying a personalized message in a new window.

Installation

Run the following command: npm install modal-react-for-projects

How to use

import React, { useState } from 'react';
import { Modal } from 'modal-react-for-projects';

const App = () => {

const [show, setShow] = useState(false);

return (
    <Modal title="My Modal" onClose={() => setShow(false)} show={show}>
        <p className="text">Your message here</p>
    </Modal>
  );
};

export default App;

Example

Imgur

Keywords

react

FAQs

Package last updated on 09 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts