Skip to content

Commit 3ed1e01

Browse files
committed
better readme
1 parent 1b5c9cb commit 3ed1e01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ import { FastCommentsCommentWidget } from 'fastcomments-react-native';
1919

2020
const myTenantId = 'demo'; // Your tenant id. Can be fetched from https://fastcomments.com/auth/my-account/api-secret
2121
const myAppPageId = 'native-test'; // the ID or URL of the comment thread in your app.
22-
const config = {
22+
const [config, setConfig] = useState({
2323
tenantId: myTenantId,
2424
urlId: myAppPageId
25-
};
25+
});
26+
27+
// by calling setConfig(), we can do things like change the current page, or the currently logged in user
28+
// See example/src/App.tsx
2629

2730
return (
2831
<FastCommentsCommentWidget config={config}/>

0 commit comments

Comments
 (0)