betula/use-between

Update readme example to React 18

betula opened this issue · 1 comments

Update index file code.

import { StrictMode } from "react";
import * as ReactDOMClient from "react-dom/client";

import App from "./App";

const rootElement = document.getElementById("root");
const root = ReactDOMClient.createRoot(rootElement);

root.render(
  <StrictMode>
    <App />
  </StrictMode>
);

Home page example updated to React 18.2.0

Edit Counter with useBetween