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.
9 import React from 'react';
10 import { createRoot } from 'react-dom/client';
12 import toastr from 'toastr';
13 toastr.options.positionClass = 'toast-bottom-right';
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.
21 import App from './app';
23 if (document.getElementById('react-root')) {
24 const root = createRoot(document.getElementById('react-root'));