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
class GoAheadConfig(AppConfig):
name = 'go_ahead'
name = "go_ahead"
import React from "react";
import ReactDOM from "react-dom";
import { HashRouter } from "react-router-dom";
import { Routes } from "Utils";
// Apply Global Masonstrap styling
......
import { PageTemplate } from "./Templates";
import { HomePage, AboutPage, DhaynesPage } from "./Pages";
import { NavBar } from "./Organisms";
import { AuthButton } from "./Molecules";
import { NavBar } from "./Organisms";
import { HomePage, AboutPage, DhaynesPage } from "./Pages";
import { PageTemplate } from "./Templates";
export {
//Templates
PageTemplate,
//Molecules
AuthButton,
//Organisms
NavBar,
//Pages
HomePage,
AboutPage,
DhaynesPage,
//Organisms
NavBar,
//Molecules
AuthButton
//Templates
PageTemplate
};
from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
]
urlpatterns = [path("", views.index)]
from django.shortcuts import render
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 @@
"private": false,
"scripts": {
"start": "yarn dev",
"dev": "webpack --mode development ./go/go_ahead/src/App.js --output ./go/static/main.js --watch",
"build": "webpack --mode production ./go/go_ahead/src/App.js --output ./go/static/main.js"
"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.jsx --output ./go/static/main.js"
},
"babel": {
"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