File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ The Modal object has two required props:
3434
3535Example:
3636
37- ``` xml
37+ ``` jsx
3838< Modal
3939 isOpen= {bool}
4040 onAfterOpen= {afterOpenFn}
@@ -84,7 +84,7 @@ an object where the keys are the names of the attributes without the prefix
8484
8585Example:
8686
87- ``` js
87+ ``` jsx
8888< Modal
8989 isOpen= {modalIsOpen}
9090 aria= {{
@@ -205,7 +205,7 @@ You can use this to remove scrolling on the the body while the modal is open.
205205
206206Inside an app:
207207
208- ``` js
208+ ``` jsx
209209import React from ' react' ;
210210import ReactDOM from ' react-dom' ;
211211import Modal from ' react-modal' ;
@@ -288,7 +288,7 @@ When using React Test Utils with this library, here are some things to keep in m
288288By default the modal is closed when clicking outside of it (the overlay area). If you want to prevent this behavior you can
289289pass the 'shouldCloseOnOverlayClick' prop with 'false' value.
290290
291- ``` xml
291+ ``` jsx
292292< Modal
293293 isOpen= {bool}
294294 onAfterOpen= {afterOpenFn}
You can’t perform that action at this time.
0 commit comments