Skip to content

Commit

Permalink
doc: Add arguments to onChangeClientState prop (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kmaschta authored and jamsea committed Feb 26, 2018
1 parent 6e65388 commit c102586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function HTML () {
defaultTitle="My Default Title"

{/* (optional) callback that tracks DOM changes */}
onChangeClientState={(newState) => console.log(newState)}
onChangeClientState={(newState, addedTags, removedTags) => console.log(newState, addedTags, removedTags)}
>
{/* html attributes */}
<html lang="en" amp />
Expand Down

0 comments on commit c102586

Please sign in to comment.