Modal

The Modal component is a dialog with a container (or page) covering background. It should be used only in situations when fully interrupting the user flow for with something important is required.

You should use other methods for presenting information and actions if a full interruption of the user flow is not required.

SyntaxError: Unexpected token (3:8)
1 : return (React.createElement(
2 : class StatelessModalExample extends Component {
3 :   state = { isOpen: true };
            ^

Modal Example

Click the background to dismiss the modal.