]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/app.js
install bases system
[alttp.git] / resources / js / app.js
index 40c55f65c25644d4f09d3c734b219a2aa736b134..47b77032002b0fb66f064bb26f3502ae191c4bcf 100644 (file)
@@ -1 +1,23 @@
-require('./bootstrap');
+/**
+ * First we will load all of this project's JavaScript dependencies which
+ * includes React and other helpers. It's a great starting point while
+ * building robust, powerful web applications using React + Laravel.
+ */
+
+import './bootstrap';
+
+import React from 'react';
+import ReactDOM from 'react-dom';
+
+import toastr from 'toastr';
+toastr.options.positionClass = 'toast-bottom-right';
+
+/**
+ * Next, we will create a fresh React component instance and attach it to
+ * the page. Then, you may begin adding components to this application
+ * or customize the JavaScript scaffolding to fit your unique needs.
+ */
+
+import App from './components/App';
+
+ReactDOM.render(<App />, document.getElementById('react-root'));