Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymshymko committed Oct 26, 2022
1 parent 8e5d5bf commit 6a750f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ function ReactClearModalExample() {

return (
<div>
<button type="button" title="Open" onClick={openModal}>Open</button>

<ReactClearModal
{/* here you can also pass any other element attributes. */}
isOpen={isModalOpen}
onRequestClose={closeModal}
>
<div>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Id beatae quia, neque modi libero quidem ipsum architecto, incidunt molestias culpa, totam accusantium reprehenderit animi voluptas magni alias error commodi ut.
<div>
</div>

<button type="button" title="Close" onClick={closeModal}>Close</button>
</ReactClearModal>
Expand Down

0 comments on commit 6a750f6

Please sign in to comment.