Skip to content

Commit 04cf325

Browse files
committed
Updates readme
1 parent 409d932 commit 04cf325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ We can pass some options in order to retrieve the wanted instance from the DOM n
5050

5151
### Options
5252

53-
* **componentName**
53+
* **`componentName`**
5454

5555
Sometimes there are more than one component instance linked to a DOM node. For example, when a component `render` method returns another component, or when using higher order components.
5656

@@ -75,7 +75,7 @@ findInstance( domNode, {componentName: 'ParentComponent'} );
7575
findInstance( domNode ); // ChildComponent instance
7676
```
7777

78-
* **maxIteration**
78+
* **`maxIteration`**
7979

8080
When there are more than one component linked to the same DOM node, `findInstance` navigates recursively through the react fibers looking for the instance of the right component we want. To make this process fast and avoid infinite loops there is a maximum number of iterations that the algorithm does until it decides that the instance can't be found. By default `findInstance` iterates `4` times looking for the instance and return `false` after not finding it.
8181

0 commit comments

Comments
 (0)