ujh/fountainpencompanion

View on GitHub
app/javascript/src/public_inks/index.jsx

Summary

Maintainability
A
1 hr
Test Coverage
import * as React from "react";
import { createRoot } from "react-dom/client";
import App from "./app";

document.addEventListener("DOMContentLoaded", () => {
  const el = document.getElementById("new-public-inks");
  if (el) {
    const root = createRoot(el);
    root.render(<App />);
  }
});