Skip to content

Commit a531e36

Browse files
authored
Update README.md
1 parent 52a408a commit a531e36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ const App = () => <OrbitProvider>...</OrbitProvider>;
2929
import { useOrbitDb } from "react-orbitdb";
3030

3131
const MyCmp = () => {
32-
const { db, records } = useOrbitDb(dbAddress, options);
32+
const { db, records } = useOrbitDb("/orbitdb/somehash/my-db, {
33+
create: true,
34+
type: 'eventlog'
35+
});
3336
3437
return (
3538
<div>

0 commit comments

Comments
 (0)