import React from "react";
import { createRoot } from "react-dom/client";
import axios from "axios";

axios.defaults.withCredentials = true;
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";

function App() {
  return (
    <div style={{ padding: 20 }}>
      <h2>React inside Laravel ✅</h2>
      <p>Now we can connect to Breeze auth + CRUD APIs.</p>
    </div>
  );
}

createRoot(document.getElementById("app")).render(<App />);
