# react-modal **Repository Path**: mirrors_mulesoft/react-modal ## Basic Information - **Project Name**: react-modal - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-modal Accessible modal dialog component for React.JS ## Usage ```xml

Modal Content

Etc.

``` Inside an app: ```js var React = require('react'); var Modal = require('react-modal'); var appElement = document.getElementById('your-app-element'); Modal.setAppElement(appElement); Modal.injectCSS(); var App = React.createClass({ getInitialState: function() { return { modalIsOpen: false }; }, openModal: function() { this.setState({modalIsOpen: true}); }, closeModal: function() { this.setState({modalIsOpen: false}); }, render: function() { return (

Hello

I am a modal
); } }); React.render(, appElement); ```