]> git.localhorst.tv Git - alttp.git/blob - resources/js/app.js
16e3e65f89d0065c0a5b31a0cfdb89a6d17f777f
[alttp.git] / resources / js / app.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 ReactDOM from 'react-dom';
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 AosApp from './components/aos/App';
22 import App from './components/App';
23
24 if (document.getElementById('aos-root')) {
25         ReactDOM.render(<AosApp />, document.getElementById('aos-root'));
26 }
27
28 if (document.getElementById('react-root')) {
29         ReactDOM.render(<App />, document.getElementById('react-root'));
30 }