
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
modal-react-pg
Advanced tools
Pour utiliser ce composant, assurez-vous d’avoir :
Installez le composant via npm depuis le terminal de votre projet :
bash npm install modal-react-hrnet
import { Modal } from 'modal-react-hrnet';
Utiliser le composant Modal dans votre JSX Dans votre composant, ajoutez le composant et configurez-le à l'aide de trois accessoires (props) essentiels :
isOpen (booléen) : détermine si la modale doit être affichée (true) ou non (false).
message (string ou JSX) : définit le contenu ou le message à afficher dans la modale.
onClose (fonction) : callback appelée pour fermer la modale, par exemple en mettant à jour l'état.
import { Modal } from 'modal-react-hrnet';
function App() {
const [isOpen, setIsOpen] = useState(false);
const handleOpenModal = () => {
setIsOpen(true);
};
const handleCloseModal = () => {
setIsOpen(false);
};
return (
<div>
<button onClick={handleOpenModal}>Ouvrir la modale</button>
<Modal isOpen={isOpen} message="Contenu de la modale" onClose={handleCloseModal} />
</div>
);
}
FAQs
Modale réutilisable en React pour HRnet
We found that modal-react-pg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.