You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-9
Original file line number
Diff line number
Diff line change
@@ -68,17 +68,16 @@ ReactDOM.render(
68
68
69
69
### Options
70
70
71
-
#### replace(domNode, key)
71
+
#### replace(domNode)
72
72
73
73
The `replace` method allows you to swap an element with your own React element.
74
74
75
-
The method has 2 parameters:
75
+
The method has 1 parameter:
76
76
1.`domNode`: An object which shares the same schema as the output from [htmlparser2.parseDOM](https://github.com/fb55/domhandler#example).
77
-
2.`key`: A number to keep track of the element. You should set it as the ["key" prop](https://fb.me/react-warning-keys) in case your element has siblings.
0 commit comments