Skip to content

Commit

Permalink
Comment the ellipsis in code blocks in docs/index.md
Browse files Browse the repository at this point in the history
This is to ensure proper syntax highlighting in http://reactcommunity.org/react-modal/
  • Loading branch information
ADTC authored and diasbruno committed Feb 8, 2024
1 parent aff8b91 commit 96a81be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ choose a different parent element by providing a function to the

```jsx
<Modal
...
// ...
parentSelector={() => document.querySelector('#root')}>
<p>Modal Content.</p>
</Modal>
Expand All @@ -202,7 +202,7 @@ You can use ref callbacks to get the overlay and content DOM nodes directly:

```jsx
<Modal
...
// ...
overlayRef={node => (this.overlayRef = node)}
contentRef={node => (this.contentRef = node)}>
<p>Modal Content.</p>
Expand Down

0 comments on commit 96a81be

Please sign in to comment.