rxferrix-cli 0.9.0

The `rxferrix` command: scaffolds new RxFerrix apps (`rxferrix new`)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { RxFerrixClient, RxFerrixProvider } from "@rxferrix/react";
import { App } from "./App";
import "./styles.css";

// Same origin: Vite proxies /api (HTTP and the WebSocket) to the RxFerrix server.
const client = new RxFerrixClient(window.location.origin);

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <RxFerrixProvider client={client}>
      <App />
    </RxFerrixProvider>
  </StrictMode>,
);