mirror of https://github.com/waku-org/js-waku.git
Replace empty div with react fragment
This commit is contained in:
parent
4284be142f
commit
8c62105d95
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue