Skip to content

Setup Inertia JS with Typescript #925

Discussion options

You must be logged in to vote

HI, check this entrypoint file example here, that I use in my project:

import {Inertia}         from "@inertiajs/inertia";
import {InertiaApp}      from "@inertiajs/inertia-react";
import {InertiaProgress} from "@inertiajs/progress";
import React             from "react";
import ReactDOM          from "react-dom";
import LoadingScreen     from "resources/js/App/Web/Components/LoadingScreen";
import AppLayout         from "resources/js/App/Web/Layouts/AppLayout";
import ErrorLayout       from "resources/js/App/Web/Layouts/ErrorLayout";

InertiaProgress.init({
  showSpinner: true,
});

const app  = document.getElementById("app") as HTMLElement;
const init = JSON.parse(app.dataset.page as st…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@felipeva
Comment options

@gozonjoedaimar
Comment options

@gozonjoedaimar
Comment options

@gozonjoedaimar
Comment options

@gozonjoedaimar
Comment options

Answer selected by felipeva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants