Commit b1c61f3c authored by David Haynes's avatar David Haynes 🙆

Reorganizing jsx vs jx files

- petty but also yes
parent 58f8286d
Pipeline #3552 passed with stage
in 1 minute and 9 seconds
# go_ahead
Words on how to code in React.
...@@ -2,4 +2,4 @@ from django.apps import AppConfig ...@@ -2,4 +2,4 @@ from django.apps import AppConfig
class GoAheadConfig(AppConfig): class GoAheadConfig(AppConfig):
name = 'go_ahead' name = "go_ahead"
import React from "react"; import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import { HashRouter } from "react-router-dom"; import { HashRouter } from "react-router-dom";
import { Routes } from "Utils"; import { Routes } from "Utils";
// Apply Global Masonstrap styling // Apply Global Masonstrap styling
......
import { PageTemplate } from "./Templates";
import { HomePage, AboutPage, DhaynesPage } from "./Pages";
import { NavBar } from "./Organisms";
import { AuthButton } from "./Molecules"; import { AuthButton } from "./Molecules";
import { NavBar } from "./Organisms";
import { HomePage, AboutPage, DhaynesPage } from "./Pages";
import { PageTemplate } from "./Templates";
export { export {
//Templates //Molecules
PageTemplate, AuthButton,
//Organisms
NavBar,
//Pages //Pages
HomePage, HomePage,
AboutPage, AboutPage,
DhaynesPage, DhaynesPage,
//Organisms //Templates
NavBar, PageTemplate
//Molecules
AuthButton
}; };
from django.urls import path from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [path("", views.index)]
path('', views.index),
]
from django.shortcuts import render from django.shortcuts import render
def index(request): def index(request):
return render(request, 'index.html') return render(request, "index.html")
# go_back
Words on how to code on the go API.
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
"private": false, "private": false,
"scripts": { "scripts": {
"start": "yarn dev", "start": "yarn dev",
"dev": "webpack --mode development ./go/go_ahead/src/App.js --output ./go/static/main.js --watch", "dev": "webpack --mode development ./go/go_ahead/src/App.jsx --output ./go/static/main.js --watch",
"build": "webpack --mode production ./go/go_ahead/src/App.js --output ./go/static/main.js" "build": "webpack --mode production ./go/go_ahead/src/App.jsx --output ./go/static/main.js"
}, },
"babel": { "babel": {
"presets": [ "presets": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment