diff --git a/docs/index.md b/docs/index.md
index 99f4dcbd..6ab362fa 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -186,7 +186,7 @@ choose a different parent element by providing a function to the
```jsx
document.querySelector('#root')}>
Modal Content.
@@ -202,7 +202,7 @@ You can use ref callbacks to get the overlay and content DOM nodes directly:
```jsx
(this.overlayRef = node)}
contentRef={node => (this.contentRef = node)}>
Modal Content.