Skip to content

Commit

Permalink
Updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arqex committed Apr 19, 2020
1 parent 409d932 commit 04cf325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ We can pass some options in order to retrieve the wanted instance from the DOM n

### Options

* **componentName**
* **`componentName`**

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.

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

* **maxIteration**
* **`maxIteration`**

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.

Expand Down

0 comments on commit 04cf325

Please sign in to comment.