React Markupfree Modal
This React Component aims to extract the markup from the modal logic.
It can be used to handle modal dialog or sidebar, or whatever modal view element.
Installation
You can get it via npm :
npm install --save react-mf-modal
Usage
Don't forget to include the CSS file :
;;;; Component { thisprops; } { return <SimpleModal title="Modal title" onSubmitClick=thishandleSuccess resolve=thispropsresolve dismiss=thispropsdismiss> Hello World </SimpleModal>; } Component { ModalService ; } { return <ModalContainer backdropComponent= Backdrop > <button className="btn" onClick=thishandleModal>Click ME</button> </ModalContainer>; }
Markup
You can use your own backdrops or use it to handle side bars, or use it with the popular css framework themes.