]> git.localhorst.tv Git - alttp.git/blob - resources/js/index.js
tracker items as svg
[alttp.git] / resources / js / index.js
1 /**
2  * First we will load all of this project's JavaScript dependencies which
3  * includes React and other helpers. It's a great starting point while
4  * building robust, powerful web applications using React + Laravel.
5  */
6
7 import './bootstrap';
8
9 import React from 'react';
10 import { createRoot } from 'react-dom/client';
11
12 import toastr from 'toastr';
13 toastr.options.positionClass = 'toast-bottom-right';
14
15 /**
16  * Next, we will create a fresh React component instance and attach it to
17  * the page. Then, you may begin adding components to this application
18  * or customize the JavaScript scaffolding to fit your unique needs.
19  */
20
21 import App from './app';
22
23 if (document.getElementById('react-root')) {
24         const root = createRoot(document.getElementById('react-root'));
25         root.render(<App />);
26 }