23 lines
640 B
TypeScript
Raw Normal View History

2022-06-17 10:48:15 +10:00
import React from "react";
import ReactDOM from "react-dom";
import { LightNodeProvider, ContentPairProvider } from "@waku/react";
2022-06-17 10:48:15 +10:00
import "./index.css";
2022-06-17 10:48:15 +10:00
import App from "./App";
2023-08-03 13:23:17 +05:30
import { CONTENT_TOPIC } from "./config";
import { Protocols } from "@waku/interfaces";
2022-06-17 10:48:15 +10:00
ReactDOM.render(
<React.StrictMode>
2023-08-03 13:23:17 +05:30
<LightNodeProvider
options={{ defaultBootstrap: true }}
2023-08-03 17:27:42 +05:30
protocols={[Protocols.Store, Protocols.Filter, Protocols.LightPush]}
2023-08-03 13:23:17 +05:30
>
<ContentPairProvider contentTopic={CONTENT_TOPIC}>
<App />
</ContentPairProvider>
</LightNodeProvider>
2022-06-17 10:48:15 +10:00
</React.StrictMode>,
document.getElementById("root")
);