Replace empty div with react fragment

This commit is contained in:
Franck Royer 2021-06-29 16:34:19 +10:00
parent 4284be142f
commit 8c62105d95
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ export default function InitWaku({
};
});
return <div />;
// Returns an empty fragment.
// Taking advantages of React's state management and useEffect()
// Not sure it is best practice but it works.
return <></>;
}
async function initWaku(): Promise<Waku> {